sudo apt-get install git
git init
git add .
Atau
git add --all
git add .
git commit -m "initial commit"
Note:
- -m : untuk menambahkan message
- git add . (dot) untuk memperoses semual file
git reset HEAD
Note :
- HEAD adalah mereset ke commit terakhir undo
git reset HEAD File_A
git status
git log
git bash --oneline
git bash --graph
git commit --amend
git diff File_A
git checkout -b branch test_branch
git checkout test
git merge master
git commit --amend
- kemudian untuk push ke git repository nya
git push --force example-branch
git config user.email "your_email@example.com"
git config user.email
git push origin --delete <branch_name>
git branch -d <branch_name>
git branch -d branch_name
git tag v1.0.1
git tag -d v1.0.1