I'm going to add all newly added files from my local repo to bitbucket repo by using Git.First i move the head from master to my relevant branch by typing.
git checkout <branch>
But then when i type,
git add .
command nothing happens.How can i add all the newly added files from local to bitbucket?
git add .
will stage all new and modified files.
git add -A
will stage all the files including the deleted ones(existing).
Commit your changes:
git commit -m <message>
You need to the push the changes to the remote repository
git push origin <branch>
In case, if you have not set up your remote repository. You can do it by:
git remote add origin <repo_url>
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.