M
M
Maxim Ivanov2015-05-14 16:33:08
git
Maxim Ivanov, 2015-05-14 16:33:08

How to upload files to github?

Run these commands

git init
git remote add origin https://github.com/splincode/unitrack.git
git checkout -b master
git clone https://github.com/splincode/unitrack.git
git add .
git config --global user.name 'splincode'
git config --global user.email '[email protected]'
git config --global color.diff 'auto'
git config --global color.status 'auto'
git config --global color.branch 'auto'
git commit -m "Комментарий для коммита"
git push https://github.com/splincode/unitrack.git master

422b2efd931a4ca3aa3350b6989be1ef.png

And if git push origin master, then for some reason bitbucket
c4b359e6295b441698f133ce5ee3021d.png

GitHub for Windows gets out
2654ee379a7d44e59e22801999064304.png

Answer the question

In order to leave comments, you need to log in

5 answer(s)
D
D', 2015-05-14
@Denormalization

$ git push origin master

A
Alexander Wolf, 2015-05-14
@mannaro

git remote add origin [email protected]:splincode/unitrack.git

https protocol is read-only. You previously stated that origin == https://github.com/splincode/unitrack.git
Why write this again?
And, I hope, RSA keys are generated? And also the public key is uploaded to github?

D
Denis Ineshin, 2015-05-14
@IonDen

If you don't want to fiddle around with the command line, then these applications are fine for you:
https://windows.github.com/
https://mac.github.com/

A
Alexey Volegov, 2015-05-14
@EagleMoor

Did you get the ssh key from github? Bitbucket is more likely to get out because you are using its key, so it requires a password from it.

N
Nikolai Volynkin, 2015-05-14
@nick_volynkin

If git push origin masterbitbucket doesn't respond, it looks like the current repository already has a remote repository named origin , and it's a repository on bitbucket. To check which repositories are already connected:
To get more detailed information on each:
If the name origin is taken, and you want to also connect github, choose another name, for example github :
In the future, you can specify where you want to push:

git push origin
git push github

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question