使用git bash和Idea将本地仓库push到指定远程git仓库
使用git bash命令行
在本地仓库目录下右键-git Bash here
$ git remote set-url origin https://github.com/地址.git
使用Idea
首先建立本地仓库,然后选择VCS-git-remote…
然后在弹出的窗口中输入远程仓库地址即可
在本地仓库目录下右键-git Bash here
$ git remote set-url origin https://github.com/地址.git
首先建立本地仓库,然后选择VCS-git-remote…
然后在弹出的窗口中输入远程仓库地址即可