I have found Gitkraken a few days ago and was playing with it a bit. I came to a point where I did not found any useful informations on the internet or the gitkraken faq about my question anymore.
I have the following case:
I made some commits and wanted to push my commits to a brand new fresh empty repository but it always ask for a remote branch. So how can I push my existing commits to a remote when there exist no remote branch until yet?
To push the new commit onto the remote, you need to click on the push button again. Then, click push once more. That's it. Once the commit is pushed to the remote branch, you can see that the origin/master tag gets moved to the same commit as the master tag.
The Git push command takes the changes you've made on your local machine and updates your remote repository to reflect those changes. Developers use this command to update their remote repository in order to share the most accurate Git history with project collaborators.
Push a new Git branch to a remote repo Clone the remote Git repo locally. Create a new branch with the branch, switch or checkout commands. Perform a git push with the –set-upstream option to set the remote repo for the new branch. Continue to perform Git commits locally on the new branch.
The --force option for git push allows you to override this rule: the commit history on the remote will be forcefully overwritten with your own local history. This is a rather dangerous process, because it's very easy to overwrite (and thereby lose) commits from your colleagues.
I have never used Gitkraken before, but I just tried to replicate your scenario. I I just typed origin/master
and clicked on submit and gitkraken automatically created the branch. I tried with an new repo on Bitbucket, but I think this should work with GitLab as well.
Steps I followed:
I see your remote is named Gitlab
, can you please also try with Gitlab/master, please note that the repository name can be case sensitive.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With