The east wind doesn't come
The catkins don't fly in March

Basic operations and problems of git uploading local files to gitlab

The prerequisite is that the preparations have been made, including the installation of git and the configuration of git under gitlab. For later upload work, the basic commands are as follows:

1. Create a new warehouse

 git clone  git@XXX :XXXX.git cd XX touch README.md git add README.md git commit -m "add README" git push -u origin master

2. For existing project folders

 cd existing_folder git init git remote add origin  git@XXX :XXXX.git git add . git commit -m "Initial commit" git push -u origin master

3. For existing git warehouse

 cd existing_folder git init git remote add origin  git@XXX :XXXX.git git add . git commit -m "Initial commit" git push -u origin

4. Possible problems

The user name and password must be entered every time the git command is submitted:

 git remote rm origin  Git add remote add origin http://website/user name/xxx.git git push origin master

 

Like( one ) Reward
Copyright notice: This article is authorized by the Knowledge Sharing Attribution 4.0 International License Agreement [BY-NC-SA]
Article name: Basic Operation and Problems of git Uploading Local Files to gitlab
Article link: https://www.wenzika.com/1136.html
The resources of this website are only for personal learning and exchange. Please delete them within 24 hours after downloading, and they are not allowed to be used for commercial purposes, otherwise the legal issues will be borne by yourself.

comment one

  • Nickname (required)
  • Email (required)
  • website
  1. #0
     Wonder Zhou

    This is good. I haven't used gitlab for a long time. I almost forget...

    Wonder Zhou Six years ago (2018-10-26) Friends from China  Google Browser  Windows 10 reply

Reward the author of the article if you think it is useful

Thank you very much for your reward, we will continue to give more high-quality content, let's create a better online world together!

Scan Alipay and reward

Scan WeChat and reward