Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

将已有的目录作为git客户端 #19

Open
clms2 opened this issue Aug 28, 2018 · 0 comments
Open

将已有的目录作为git客户端 #19

clms2 opened this issue Aug 28, 2018 · 0 comments

Comments

@clms2
Copy link
Owner

clms2 commented Aug 28, 2018

  1. 切换到该目录, git init
  2. git remote add origin xxx@xx.com.git,如果本机同时也是gitlab仓库,那可以直接git remote add origin /path/to/.git, 如果是http的可以改成http://user:password@xxx.git记住密码
  3. 存储密码: git config --global credential.helper store;
  4. 要关联的分支: git pull origin master/develop
@clms2 clms2 changed the title 把在服务器已有的web文件夹下纳入git版本 将已有的目录作为git客户端 Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant