Skip to content

This is helpful if you get tired of entering basic github commands, please read the documentation

Notifications You must be signed in to change notification settings

LEDparty/lazy-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

About

This script automates the basic commands for adding files and making changes to the files in a github repository. With the way github is currently setup, you probably need to create the repo and get the access token from the website, but lazy commit executes all the git commands for you once you have created the folder and files locally to make that part much less irritating. It updates files all at once and force pushes with lease.

Install

The script should work on linux shells and mac shells alike, but if you are a macbook user, you will probably need to omit the "install" command and find a different way to make this script part of your path directories:


git clone https://github.com/LEDparty/lazy-commit
cd lazy-commit
sudo install lazy.sh /usr/local/bin
#alternative, not needed if you use install command
#chmod +x rwg.sh

Usage

Just run lazy.sh from your local repository folder.

If you are working with a branch other than "main", first launch this command to check the preferred branch (the current branch) from your repository folder:

git branch --show-current

Use this to switch to a branch if it already exists:

git switch branch-name

"branch-name" being any name you choose.

You can use any one of these commands to create a branch and make it the preferred branch:


git checkout -b branch-name
git switch -c branch-name

Then, when you run lazy.sh, it will automatically recognize the preferred branch you are pushing to when you select not to initialize the repository (you can't change branches if you have not created an original one like "main" or "master").

About

This is helpful if you get tired of entering basic github commands, please read the documentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages