设置上传者
Git global setup
git config --global user.name "chenyu**" git config --global user.email "chenyu**@haier.com"
本地创建分支
Create a new repository
git clone git@10.159.46.130:anzhu/sf.git cd sf touch README.md git add README.md git commit -m "add README" git push -u origin master
有了本地工程,上传
Existing folder
cd existing_folder git init git remote add origin git@10.159.46.130:anzhu/sf.git git add . git commit -m "Initial commit" git push -u origin master
本地分支上传
Existing Git repository
cd existing_repo git remote add origin git@10.159.46.130:anzhu/sf.git git push -u origin --all git push -u origin --tags