Search results with tag "Git cheat sheet"
GIT CHEAT SHEET - GitHub Education
education.github.comGIT CHEAT SHEET STAGE & SNAPSHOT Working with snapshots and the Git staging area git status show modified files in working directory, staged for your next commit git add [file] add a file as it looks now to your next commit (stage) git reset [file] unstage a file while retaining the changes in working directory git diff
Git Cheat Sheet - Atlassian
www.atlassian.comgit init <directory> Create empty Git repo in specified directory. Run with no arguments to initialize the current directory as a git repository. git commit --amend Replace the last commit with the staged changes and last commit combined. Use with nothing staged to edit the last commit’s message. Rebase the current branch onto <base>.
Git Cheat Sheet
www.cheat-sheets.org! you cannot undo a hard reset Return to the last committed state git reset --hard Fix the last commit git commit -a --amend (after editing the broken files) Creates a new commit Creates a new commit Branch Merge branch1 into branch2 ... HEAD~4 : the great-great grandparent of HEAD.