`
sitoto
  • 浏览: 120097 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

git - remote add origin 的使用

阅读更多
Global setup:
Set up git
  git config --global user.name "Your Name"
  git config --global user.email huang.gadela@gmail.com
     
Next steps:
  mkdir test
  cd test
  git init
  touch README
  git add README
  git commit -m 'first commit'
  git remote add origin https://github.com/sitoto/test.git
  git push -u origin master
     
Existing Git Repo?
  cd existing_git_repo
  git remote add origin https://github.com/sitoto/test.git
  git push -u origin master
     
Importing a Subversion Repo?
  Check out the guide for step by step instructions.
     
When you're done:
  Continue

===========================================
error:
error: The requested URL returned error: 403 while accessing https://github.com/dd/test.git/info/refs
fatal: HTTP request failed
=============================
原因:authenticity of host 'github.com (207.97.227.239)' can't be established
RSA key fingerprint  。。。。。。
解决:
git remote set-url origin git@github.com:dd/test.git
会提示 加入 github.com 到 list of known hosts


分享到:
评论

相关推荐

    git-helper:GIT快速帮助命令

     git status git commit -m "First commit" git remote add origin git@github.com:xxxxxx/xxxxxxx.git git remote -v git push -u origin master将密钥添加到github cat ~/.ssh/authorized_keys cat ~/.ssh/...

    git常用命令.txt

    git remote add origin [url]如:git remote add origin xxx(我新建的仓库的链接) 5:git push -u origin master 把本地仓库中的文件同步到远程仓库中。其中master为远程仓库的分支名。 git push -u origin ...

    git指令快速查询-代码管理工具

    git remote add origin git@192.168.1.119:ndshow git push origin master 将文件给推到服务器上 git remote show origin 显示远程库origin里的资源 git push origin master:develop git push origin master:hb-...

    git命令整理的简单使用

    连接远程仓库:git remote add origin git@github.com:yourName/repositoryname.git 从远程仓库pull文件:git pull origin master 提交代码到暂存: git add . (提交暂存) 提交代码: git commit -m (注释什么...

    Git-2.21.0-64-bit.zip

    * "git worktree add" used to fail when another worktree connected to the same repository was corrupt, which has been corrected. * The ownership rule for the file descriptor to fast-import remote ...

    chef-git-server:Chef Cookbook 创建一个简单的基于 SSH 的 Git 服务器

    > git remote add origin git@git.remoteserver.com:git-is-awesome.git > git push origin master > git pull origin master 要求 厨师 在 Chef 11.6.2 上测试。 平台 目前仅在 Ubuntu 14.04 上测试。 请为您希望...

    git入门.txt

    配置git信息用户名和用户邮箱 git config --global user.name " " git config --global user.email " " 初始化 git init 将文件添加到库 ...git remote add origin 推送到云端 git push -u -f origin master

    screen-capture-app

    git remote set-url --add origin https://github.com/MrLeo/screen-capture-app.git git remote set-url --add origin https://gitlab.dev.zhaopin.com/innovation/screen-capture-app.git git remote add github ...

    git代码上传流程文档

    git remote rm origin # 初始化本地仓库 git init # 添加文件到暂存区(添加全部文件) git add . # 提交文件到本地仓库 git commit -m "提交说明" git push origin master //master是默认分支名,这里可以根据...

    NodeJs-With-Git-Commands:Git命令

    NodeJs-With-Git-Commands Git命令 1)git init 2)git add * 3)git commit -m "First Commit" 4)git remote add origin th-Git-Commands.git 5)>git push -u 起源大师

    学习GitRepo

    git remote add origin git push origin master git rm-缓存 git branch <分支名称> git结帐 git merge <分支名称> git remote -v git push -u原始主机 git remote add origin git commit -am“提交...

    JS-24-5tob:使用Git和Git-Hub进行Java入门课程

    使用git remote add origin url_remote将我的远程存储库添加到本地存储库 使用git push -u origin main将我的更改上传到远程 检查我的遥控器是否添加了最新更改。 Lab 8.1软件包安装。 使用NPM安装代码包。 ...

    my-repo-cmdline:从cmd行

    git push -u origin master分支git checkout master git branch pr1 git checkout pr1 编辑档案git add somefile1 somefile2 git commit git push origin pr1 git checkout master同步叉git status git remote -...

    fake-git-history:生成漂亮的GitHub活动图

    假GitHub提交一个用于生成GitHub活动图的命令行工具。 您的个人资料看起来像完全... 创建名为my-history,并将您的虚假历史my-history推送到远程存储库: git remote add origin git@github.com: < USERNAME> /my-hist

    git-simpleserver:从命令行管理自己的Git服务器

    Git Simple Server —安全管理自己的Git服务器 Git Simple Server(缩写为“ git ss”)使您可以轻松地从命令行在... $ git remote add origin git@leonklingele.de:leon/server-config-nginx $ git remote set-ur

    解决fatal:remote error:You can’t push to git://github.com/username/*.git问题的办法

    解决fatal:remote error:You can’t push to git://github.com/username/*.git问题的办法 今天Git push的时候 fatal:remote error: ...git remote add origin git@github.com:username/resname.git 接

    openwrt-packages

    git remote add origin https://github.com/guyezi/openwrt-packages.git git push -u origin main …或从命令行推送现有存储库 git remote add origin https://github.com/guyezi/openwrt-packages.git git branch ...

    git-commands-workflows::high_voltage:您需要了解的所有git命令和工作流程

    # connect the remote GitHub repo with your local projectgit remote add origin [github-repo-url]# see untracked filesgit status# add all untracked files to the staging areagit add .# co

    esd-music-store

    …或在命令行上创建新的存储库echo“#esd-music-store” >> README.md git init git add README.md git commit -m“首次提交” git branch -M main git remote add origin git push -u origin main…或从命令行推送...

    git-first-aid

    $ git help <command> $ man git-注意:点击“q”退出帮助页面与 GitHub 连接将您的本地项目添加到您的 git 配置文件中(必须先在 GitHub 上创建它)HTTPS $ git remote add origin https://github.com/<git>/...

Global site tag (gtag.js) - Google Analytics