E
E
Evgeny Bykov2018-10-15 21:58:13
git
Evgeny Bykov, 2018-10-15 21:58:13

Problems with GIT push to a remote repository, how to fix it?

I'm learning git, but I'm already completely confused.
So, I have a link to a remote repository and a daddy in which I am (there are a few more folders in it). My sequence of actions:
1.) git init - everything is ok, writes initialized
2.) git remote add origin <repository link> - everything seems to be ok here too
3.) git add . - just as great, when it displays git status it highlights green
4.) git commit -m "co" - after the git status, nothing is already selected
5) git push origin master - I pour everything into the remote repository
6.) git clone <Link to repository> - creates a folder, but the files have not been updated (there are only old ones, new ones have not been added)
I suspect that this is because I accidentally added files to the repository 1 time. But how do I add new files now? NEED HELP!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Zemlyanoy, 2018-10-15
@Galamoon

Until step 6, you are correct, I will assume that in step 6 you want to get changes from the repository, for this there is a command git pull origin master

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question