I was working in one project file detached from the remote repository for a while, I would like to commit my changes to the old existing repository now.
I have cloned the old version:
git clone <repository path>
How I can merge my new changes? Overwriting the local git folder and run:
git commit
cause me some errors.
tanx
First, you need to add your files to the list of changes to be committed.
You could say
git add myfile.txt anotherfile.txt, or, you could add all files withgit add *.Or, you could have Git automatically add file changes to a Git commit by saying
git commit -a.To merge your changes into the remote repo, you need to run
git push origin master.