Simply AHK script that is mostly useful to me.
Using syntax highlighting in markdown syntax
-
If you need to create a local copy of a project from Github, all you need to do is open bash in the desired target folder, then type:
git clone the_url_of_the_repository
-
If you already have a project downloaded and want to make a new branch, first make sure your local version matches the master branch. If you're not already on the main branch, it'll switch to the main when you do this.
git checkout master git fetch origin git reset --hard origin/master
-
Now make a new (local) branch. You don't have to create a branch ahead of time on Github.
git checkout -b new-feature
-
Once you've made changes and want to push them to the branch on Github, you must first prep for the push.
git status git add <some-file> git commit
- At this stage, you'll be prompted to enter a description for the changes you've made. Type your description, then
- "Ctrl+O" to say it's finalized
- "Enter"
- "Ctrl+X" to exit the shell text editor and continue on your merry way
-
Once your changes have been committed, push those changes to a branch on Github.
git push -u origin new-feature