备份GitLib项目

2019-03-12 42 words 1 min read


  1. 在GitLib上新建一个项目 NewDubbo

  2. 下载需要备份的项目 dubbo

  3. 进入dubbo项目的文件夹下

  4. 查看分支,在master分支下

    git branch -r

  5. 修改远程的URL 

    git remote set-url origin git@gitlab.com:vmsWUHT/NewDubbo.git

  6. 提交当前分支

    git push

  7. 切换分支

    git checkout dubbo-v1.0

  8. 提交当前分支

    git push


java 高亮和换行

public class HelloWorld {
	public static void main(String[] args) {
		System.out.println("Hello, World!");
	}
}

循环将所有分支提交上去



Tags: gitlib backup

author

Authored By WUHAOTIAN

A gentleman should always strive to improve himself

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it