我已經在創建了一個分支在遠程和分支的所有更改本地(git checkout -b gopinath
)如何提交和推入到位桶
之後,我採取了以下步驟
0)GIT遠程添加上游[您到位桶庫網址在這裏。
1)GIT中的init
2)GIT中狀態
3)GIT中添加。
4)git的承諾-m 「初始提交」
給第4個命令後,我得到這個問題
atal: The current branch gopinath has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin gopinath
why i am getting this issue i am doing the wright way to push my code to bitbucket.
,如果我籤的掌握和刪除本地分支我得到這個錯誤味精
Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly: git config --global user.name "Your Name" git config --global user.email [email protected] After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
8檔改變,6個插入(+),8個缺失( - )`
更新
git branch -a
在此之後,我得到*master
git remote -v
爲了這個,我得到
upstream https://[email protected]/mobinius/ionicpoc.git (fetch) upstream https://[email protected]/mobinius/ionicpoc.git (push)
git log --graph --all --decorate --oneline
我收到這個
* 5c12918 (HEAD -> master) keychain demo * 8b518a4 Initial commit
你是否在git'git remote add origin your_gitrepo_url'中添加了遠程倉庫URL? –
你需要添加遠程倉庫git的遠程添加原點(上游)repo_url –
是的,我補充說,一個@IvanSheigets –