Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
+2 votes
in DevOps and Agile by (19.7k points)

I am making changes to some file in my local git repository and then want to send the changes to the remote git repository from which the local was cloned via ssh.

After run "git commit -a" on my local side, to send the changes to the remote, I run

$ git push

Everything up-to-date

However, I checked the remote files and they are not changed! Any idea?

Thanks and regards!

1 Answer

+2 votes
by (62.9k points)

You probably pushed into a non-bare repository, i.e. a repository that features a working copy attached to it. You shouldn’t have neglected the warning git push provides you if it notices that this is the case.

Anyway, log in to the remote machine, amendment to the repository and do

git checkout <name_of_the_branch_you_are-in>

Browse Categories