Committing Pushing
Committing/Pushing
$ git add .
$ git commit
$ git pushFix a commit
$ git commit -amendReset to last git commit
$ git reset --hard HEAD
# OR
$ git reset --hardUndo a commit without losing local files
git reset HEAD~1Commit specific lines of code
$ git add -p
>> Stage this hunk [y, n, ...]?Options for Stage this hunk [y, n, ...]?
Stage this hunk [y, n, ...]?Delete file that is already in repo
Show changes between commits
Do not commit specific lines of code
.gitignore
.gitignoreGet latest commit hash
Get commits different between two branches (parent and child)
Last updated