This is a collection of notes for everyday git commands.
Add an existing project to git
Create a new repository on github, then from the projects root:
Amend a commit message
Commit your work
Check how many commits have been made:
Use that number to tell git how many commits to squash into one:
Create a new branch
To create a new branch checkout the branch you want to base your work on:
Then its as simple as doing a pull to make sure you have the latest work and adding the -b tag with your new branches name:
Clone repo and push to new repo
Create a new repo on github then clone the repo you want to copy.