Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用gitbash登录和使用git命令_Git_Github - Fatal编程技术网

如何使用gitbash登录和使用git命令

如何使用gitbash登录和使用git命令,git,github,Git,Github,我有一个带有回购协议的github帐户,我想将更改推送到该帐户 我在本地文件夹中执行了git init 使用gitbash using命令登录 git config --global user.name "Your Name here" 及 当我登录github网站时,我可以在那里看到回购协议。并检查了克隆url 我想GitRemote也应该显示repo名称,但它没有 另外,当我尝试使用git clone repo name进行克隆时,它无法找到repo 我错过了什么?您需要添加远程回

我有一个带有回购协议的github帐户,我想将更改推送到该帐户

我在本地文件夹中执行了git init

使用gitbash using命令登录

    git config --global user.name "Your Name here"

当我登录github网站时,我可以在那里看到回购协议。并检查了克隆url

我想GitRemote也应该显示repo名称,但它没有

另外,当我尝试使用git clone repo name进行克隆时,它无法找到repo


我错过了什么?

您需要添加远程回购。以下是您需要做的:

git remote add origin https://github.com/your_user_name/your_repo.git
#This will set origin as your remote repository
git pull origin
如果您以后希望将更改推送到远程回购:

git push origin <branch_name>
#It will then prompt you for your github username and password
git推送原点
#然后它会提示您输入github用户名和密码

您需要添加远程回购。以下是您需要做的:

git remote add origin https://github.com/your_user_name/your_repo.git
#This will set origin as your remote repository
git pull origin
如果您以后希望将更改推送到远程回购:

git push origin <branch_name>
#It will then prompt you for your github username and password
git推送原点
#然后它会提示您输入github用户名和密码

您需要添加远程回购。以下是您需要做的:

git remote add origin https://github.com/your_user_name/your_repo.git
#This will set origin as your remote repository
git pull origin
如果您以后希望将更改推送到远程回购:

git push origin <branch_name>
#It will then prompt you for your github username and password
git推送原点
#然后它会提示您输入github用户名和密码

您需要添加远程回购。以下是您需要做的:

git remote add origin https://github.com/your_user_name/your_repo.git
#This will set origin as your remote repository
git pull origin
如果您以后希望将更改推送到远程回购:

git push origin <branch_name>
#It will then prompt you for your github username and password
git推送原点
#然后它会提示您输入github用户名和密码

你有吗?试着先运行
git fetch
用GitHub更新你自己。有没有试着先运行
git fetch
用GitHub更新你自己。有没有试着先运行
git fetch
用GitHub更新你自己。有没有试着先运行
git fetch
用GitHub更新你自己。