-
Clone project
git clone git@example.com:project-name.git
-
Create branch with your feature
git checkout -b $feature_name
-
Write code. Commit changes
git commit -am "My feature is ready"
-
Push your branch to GitLab
git push origin $feature_name
-
Review your code on Commits page
-
Create a merge request
-
Your team lead will review code & merge it to main branch
另外对于如下图所示:
LF will be replaced by CRLF的警告,只需要关闭回车换行的自动替换功能即可。
命令如下:$ git config core.autocrlf false
参考资料:
[git] warning: LF will be replaced by CRLF
http://www.phperblog.net/?p=232
git常用命令
最新推荐文章于 2024-07-22 23:24:58 发布