M
M
maxitop2017-06-14 17:25:48
git
maxitop, 2017-06-14 17:25:48

git push not working?

Greetings!
Created a remote repository git --bare init grid. On the local machine, I create the grid folder and run the git init command in it. Then I add the remote repository git remote add origin ssh **** and then git clone ssh:
Next, I create the files that will be in the project and commit and do git push origin master
Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 1.03 KiB | 0 bytes/s, done.
Total 5 (delta 0), reused 0 (delta 0)
To ssh://g******
* [new branch] master -> master
However, after sshing to the remote repository, there are no files in the project. What is wrong with me, did I miss something?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Igor Vorotnev, 2017-06-14
@HeadOnFire

Try git push --set-upstream origin masterit (--set-upstream is only needed the first time)

J
jcmvbkbc, 2017-06-14
@jcmvbkbc

Created a remote repository git --bare init grid

The files won't exist until you check them out. But there should be commits -- see git log.

A
Alex Maximovich, 2017-06-16
@flexer1992

git add -A; git commit -m "message" ; git push originmaster; Try doing a git status first and see what's going on in your revision. It is very likely that you simply did not add the files to the revision.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question