git clone git@gitlab-internal.wedobest.com.cn:dengyanhui/gittest.git
git add .
git commit -m 'message'
git push
git status
git pull
git clone -b develop XXX
git fetch --all
git reset --hard origin/master(master可修改为对应分支名)
git checkout -- filename
git checkout .
Github desktop上操作
git ls-remote ${sourceURL}
git log -1 --pretty=format:"%s (%an, %ar)"
git config --get remote.origin.url
主要的几个命令:
$ git branch BranchTest1
$ git checkout BranchTest1
git commit -a -m "test1"
git push --set-upstream origin BranchTest1
git checkout master
git merge BranchTest1
git commit -a -m "合并测试"
git push
git branch -d BranchTest1
git push origin --delete BranchTest1