-1

If I have two different files in local git repository, and i Want to push a single file to cloud repository., How do I do it.?

Karthik Amar
  • 217
  • 5
  • 17
  • 1
    There seems to be a fundamental misunderstanding here. You don't push files, you push commits. Just commit what you want to push and then push it. – musiKk Feb 04 '15 at 08:09
  • I think what you're trying to do is ignore changes to a particular file. If so, then the answer is **.gitignore**. – Bogdan Păun Feb 04 '15 at 16:05

1 Answers1

1

git add path_to_single_file

git commit -m "message"

git push