Thursday, February 2, 2017

git cheat sheet

Still learning the system.
git init                |  Tell git to start watching the directory
git clone <repo>        |  Get a local copy of the repository
.gitignore              |  Contains patterns of files to ignore
git rm --cached <file>  |  Stop tracking the file in git
git add <file>          |  Stage a snapshot of the file
git rm <file>           |  Stage the file's removal
git mv <a> <b>          |  Rename 'a' to 'b' and stage the change
git status              |  Staging status of files
git status -s           |  Simpler version of status
git commit              |  Upload to server
git commit -m "txt"     |  Commit, with inline message

No comments:

Final post here

I'm switching over to github pages .  The continuation of this blog (with archives included) is at umhau.github.io .  By the way, the ...