Create New Gitlab Branch
- Config user.name
- Config user.email
- git clone
- touch then Add
- git commit
Others Git Command
See all branches (highlight with star is the position of the branch)
git branch
Switch the branch
git checkout branch_name
Create new branch and switch to ti
git checkout -b branch_name
Delete branch
git branch -d branch_name
Delete branch on github
git push origin:branch_name
Revert
git reset –hard commit_hash
Add a single file
git add file_name
Commit the change
git add .
git commit -m “COMMENT TO DESCRIBE THE INTENTION OF THE COMMIT”
git push REMOTE NAME-OF-BRANCH / git push origin master