GitHub-Desktop+码云(git.oschina.net)无权限访问解决

  • 如何从码云GIT导入到GitHubDeskTop桌面工具。

        1、先用命令行切换到本地的目录。

        2、使用git clone 码云GIT地址 命令将项目克隆到本地。

        3、在GitHub Desktop上添加(Add)本地项目(local path)。

        4、在GitHub Desktop上提交、同步!
        

  • 如何将本地的项目上传到码云GIT。

        1、选择本地目录,在GitHub Desktop上添加本地项目。

        2、在码云GIT上新建项目。

        3、 命令行使用git remote add origin GIT地址 将本地项目与码云GIT项目建立关系。

        4、先使用命令git pull origin master 同步代码。

        5、使用命令git push origin master 将本地代码推送到远程项目。

        6、在GitHub Desktop上提交、同步!

温馨提示:github desktop新版本不会弹窗输入账号密码,所以需要设置项目的repository settings才能正常pull和push等操作。remote repository:https://注册名:密码@git.oschina.net/huiwtech/org.git

repository settings

猜你喜欢

转载自blog.csdn.net/yangshare/article/details/74934668