I added a file into the folder for Git uploading. I can see the folder in the SourceTree under unstaged. How can I push the file to online storage with terminal commands?
I figured it out I need to first cd to the local repository, which I did with this:
cd /Users/mainuser/Desktop/Projects
git add -A .
checked status with git status
and it outputs this:
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: ios_projects/2016/Untitled copy 2.rtf // this is the file I want to upload
What now? How do I commit it and push it online?
next thing would be to commit using and then push to what ever branch you want to push
git commit -m 'Some message about the change'
git push origin 'branch-name'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With