How Git bash here is used
https://gitforwindows.org/git for windows 是开源的,上传代码到gitlab ,github 非常好用的一款软件
How to use:
First create a folder, right-click
Similar to the operation under Linux
1. Next to create a user name and mailbox, if you register in the Gitlab Web interface, there is no need to operate the
git config --global user.name”用户名(建议是英文)” git config --global user.email”邮箱地址”
2. Create a new warehouse (you can clone from remote to local if not created locally)
Clone: Git clone Ssh://[email protected]
Gitlab two ways to link HTTP,SSH recommended http, if using SSH may error, unable to resolve the address problem
I have created a new library locally
3. Place the code you want to upload in this folder
Add a remote server side:
Git remote add Origin ssh://git.................git
4. submit file to Staging area:
git add filename/project name//If all content under the file is uploaded later.
5. Understand the submission of the staging area file:
Git commit-m ""//"" Input is the description of this upload
It should be like this without an error.
6. Push the local landlord branch to the remote:
Git push-u Origin Master
git for Windows