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将所有新添加的文件从我的本地仓库添加到bitbucket repo。我首先通过输入将头部从master转移到我的相关分支。
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?
命令没有任何反应。如何将所有新添加的文件从本地添加到bitbucket?
1 个解决方案
#1
3
git add .
will stage all new and modified files.
git add。将暂存所有新的和修改过的文件。
git add -A
will stage all the files including the deleted ones(existing).
git add -A将暂存所有文件,包括已删除的文件(现有文件)。
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>
#1
3
git add .
will stage all new and modified files.
git add。将暂存所有新的和修改过的文件。
git add -A
will stage all the files including the deleted ones(existing).
git add -A将暂存所有文件,包括已删除的文件(现有文件)。
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>