3 answers
Hello.
I ran into the same problem, it did not work out in the forehead, so I used the workaround. If it is still relevant to you, then here is the solution to this problem:
In order for the "Push" option to work, you need a repository on a remote server (for example, on GitHub). A repository is a folder in which your project will be stored. There can be many repositories on the server (each project has its own folder). Create a folder for your project on GitHub.com (otherwise Gitkraken does not understand where to upload all changes). Immediately after creating the repository on GitHub (for example) you will see the following message inside your repository: ... or create a new repository on the command line
echo "# ProgrammingInLinuxBook" >> README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/имяПользователя/названиеРепозитория.git git push -u origin master (These commands we will use.)
- Next, go to the folder of your project on the computer (not on GitHub).
- I work with Linux and I have Git installed. In any case, you need to install Git.
- If you have Linux: go to the project folder and open the Terminal (right-click on an empty place -> Open in Terminal)
- If you have Windows: open a terminal (or whatever it installs with Git) and go to the project folder with CD commands ...
- Next, enter the following command in the Terminal:
echo "# НазваниеПапкиВашегоПроекта" >> README.md - The name of the project folder should be the same as the name of the repository on GitHub.
- Next, enter the following command in Terminal:
git init - Then enter the following command in the Terminal:
git add README.md - Next, enter the following command in the Terminal:
git commit -m "first commit" - Next, enter the following command in the Terminal:
git remote add origin https://github.com/имяПользователя/названиеРепозитория.git - Next, enter the following command in the Terminal:
git push -u origin master - Everything. Now open GitKraken, there on the left there is an icon in the form of a cloud, your remote repository will appear there. Try pushing the button now.
Upstream branch (ibid)
Local mirror of the branch on the server that the specified local branch will track.
If this is the only remote repository with which you plan to work from this local one, then it makes sense to keep the names of their branches the same.
Therefore, origin/master fit .
But there is a problem much funnier: Remotes 0/0
You have not specified any remote repository. origin does not exist. Add it.
- See I enter the master and the submit button becomes inactive - darkwoolf
- it is active only if I haven’t entered anything yet - darkwoolf
- Hm And what about
origin/master? - D-side - also nothing .. I wouldn’t have written if I hadn’t tried at least some elementary options - darkwoolf
- one
попробовал хоть какие-то елементырные варианты- shotgun-version-control. - Nick Volynkin ♦
what exactly to enter when you push push in gitkraken
For push is required
- local branch from which to push
- branch of the remote repository, in which this push will be made
- and the remote repository itself is needed, of course
In your left pane: REMOTE 0/0.
What does this mean:
- or remote repository is not configured, where it would be possible to push
- or configured, but data was never taken from it (fetch).
Solution: set up a remote repository and update the data from it. And also make sure that you do not confuse push and commit.
- I added a remote and something still remained all so self - darkwoolf
- @darkwoolf and the changes you then pulled from the server?
git fetchin the console or some similar button. - Nick Volynkin ♦ - A strange question, but you can explain it in Skype or something like that ... Just such a garbage, but normally because of this I can not work - darkwoolf
- I will be overly grateful - darkwoolf
- @darkwoolf I would recommend trying the command line, without a client. It introduces unnecessary complexity. Dare you? - Nick Volynkin ♦
