git log #
amend commit #
Unstaging a Staged File #
$ git restore --staged CONTRIBUTING.md
Unmodifying a Modified File #
$ git restore CONTRIBUTING.md
checkout a commit #
$ git checkout 3c65a398d82b8ee2c6c966e596169432053af533
checkout a commit in new branch #
$ git checkout -b newbranch 3c65a39
delete local branch #
$ git branch -d pipo
delete remote branch #
$ git push origin --delete remoteBranchName
or
$ git push origin :fix/auth
sync branch list #
$ git fetch [-p]
show local en remote branches #
$ git branch -a \# local + remote
$ git branch -r \# alleen remote
Return to previous commit #
How to remove git commit history #
remotes #
inspecting remote #
$ git remote show origin
Tags #
listing tags #
$ git tag
$ git tag v1.0.3
create Annotated Tags #
lightweigt tags #
$ git tag v1.0.1
$ git show v1.0.1
list remote tags #
$ git ls-remote --tags origin
$ git fetch \# haal ook alle tags op
Deleting tags #
$ git tag -d v1.4-lw
$ git push origin --delete v1.4-lw
checking out tags #
$ git fetch \# haal ook alle tags op
$ git checkout -b Feature/v1 v1.0.1
git aliases #
Submodules #
aanmaken #
uitchecken #
of dit alles in 1 go
$ git clone --recurse-submodules https://github.com/chaconinc/MainProject
Go Home