简体   繁体   中英

Why aren't my files getting added

I am trying to add two files to a local gitlab (academic clone of git hub) repo and then them push to a remote gitlab repo's master branch.

I use these commands, which run without error but don't add the file to the remote repo.

a$ git add slides1.pptx 
a$ git add slides2.pptx 
a$ git push origin master
Ubuntu 12.04.2 LTS gitlab ssh-pty

Everything up-to-date

What am I missing?

You forgot to commit:

a$ git commit -m "Added 2 *.pptx files"

and only after you have committed you can push your changes to remote:

a$ git push origin master

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM