初始化git
command:git init
export:Initialized empty Git repository in xxx
创建本地分支
command:git checkout -b test_hydra
export:Switched to a new branch 'test_hydra'
备份本地文档
command: git add .
export: xxx Filename too long, fatal: adding files failed
如果发生文件名过长可忽略掉
command:git config core.longpaths true
export:None
添加更新备注
command:git commit -m "xxxx"
export:update list ....
关联git项目
command: git remote add origin https://gitlab.xxx
export:None
下载远程项目同步
command:git pull --rebase origin test_hydra
export:Successfully rebased and updated refs/heads/test_hydra
关联git 项目
command:git branch --set-upstream-to=origin/test_hydra
export:branch 'test_hydra' set up to track 'origin/test_hydra'.
接下来正常使用就可以了
git pull
git add .
git commit -m "xxx"
git push