流程
- 創(chuàng)建remote項(xiàng)目倉(cāng)庫
- clone至本地文件夾
- cd 本地文件夾
- 插入烈炭、修改文件
- add缴罗,commit
- 添加remote網(wǎng)址別名
- push至remote倉(cāng)庫
- 網(wǎng)絡(luò)端修改
- pulll同步至本地
code:
# create online repository
cd c:/git
git clone https://coding.net/u/frank0449/p/1029A/git 1029A
cd c:/git/1029A
git remote add c1029A https://coding.net/u/frank0449/p/1029A/git
# add files
git add .
git status
git commit -m "add, first edition"
git push -u c1029A master
# update online
git pull
注意事項(xiàng)
- clone 操作在c:/git
- cd c:/git/1029A之后創(chuàng)建項(xiàng)目網(wǎng)站別名
- git push之前要進(jìn)行add只厘、commit