設置上傳者git
Git global setuprem
git config --global user.name "chenyu**" git config --global user.email "chenyu**@haier.com"
本地建立分支it
Create a new repositoryast
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
有了本地工程,上傳email
Existing foldertouch
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
本地分支上傳mail
Existing Git repositoryco
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