$ repo upload
If multiple projects have been changed at the same time, in order to avoid errors, an editor will pop up to display a list of projects with changes that need to be submitted.
# Uncomment the branches to upload: # # project test/test1/: # branch jiangxin ( 1 commit, Mon Oct 25 18:04:51 2010 +0800): # 4f941239 0.2-dev -> 0.2-jiangxin # # project test/test2/: # branch jiangxin ( 1 commit, Mon Oct 25 18:06:51 2010 +0800): # 86683ece 0.2-dev -> 0.2-jiangxin
The pound sign in front of each line is a comment, an ignored line. Remove the comment before the branch you want to commit to, and you can perform the push action on the branch of the project. As follows, we remove the comments of the two branches, and push the changes to the current branches of these two projects to the upstream server.
# Uncomment the branches to upload: # # project test/test1/: branch jiangxin ( 1 commit, Mon Oct 25 18:04:51 2010 +0800): # 4f941239 0.2-dev -> 0.2-jiangxin # # project test/test2/: branch jiangxin ( 1 commit, Mon Oct 25 18:06:51 2010 +0800): # 86683ece 0.2-dev -> 0.2-jiangxin
After saving and exiting (if using the vi editor, enter :wq to execute save and exit), immediately start executing git push on each selected project.
Counting objects: 5, done. Delta compression using up to 2 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 293 bytes, done. Total 3 (delta 0), reused 0 (delta 0) To ssh://[email protected]/ossxp-com/test1.git 27aee23..4f94123 jiangxin -> master Counting objects: 5, done. Writing objects: 100% (3/3), 261 bytes, done. Total 3 (delta 0), reused 0 (delta 0) To ssh://[email protected]/ossxp-com/test2.git 7f0841d..86683ec jiangxin -> master -------------------------------------------- [OK] test/test1/jiangxin [OK] test/test2/jiangxin