-3

I am tracking my project on git repo. I've added a python file using the commands below to the git repo:

git init
git add --all 
git commit -m "Initial Commit" 
git remote add origin 
git push -u origin master

Now I want to add a second file type i.e. text file to the repo however, my Updates were rejected because the tip of your current branch is behind. How can I add a second file type to the same repo? Do I need to use branches?

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
Yags
  • 482
  • 1
  • 6
  • 18
  • Presumably someone (or something) else is also pushing commits to that remote. Did you read the rest of the error message, or the numerous resources referring to it? – jonrsharpe Feb 11 '18 at 13:02
  • It's just me using the repository. – Yags Feb 11 '18 at 13:04
  • Possible duplicate of [How to resolve git error: "Updates were rejected because the tip of your current branch is behind"](https://stackoverflow.com/questions/22532943/how-to-resolve-git-error-updates-were-rejected-because-the-tip-of-your-current) – phd Feb 11 '18 at 13:49

1 Answers1

0

Make sure the files are in the same folder in your local working directory. Using the same method above will allow you to push different file types to git repo

Yags
  • 482
  • 1
  • 6
  • 18