Answer the question
In order to leave comments, you need to log in
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
Try git push --set-upstream origin master
it (--set-upstream is only needed the first time)
Created a remote repository git --bare init grid
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 questionAsk a Question
731 491 924 answers to any question