- Log-in https://gitee.com to create a new project on the web.
- Change directory to the folder where you want to save the project files.
- From the https://gitee.com, copy the git-command for downloading the project.
https://gitee.com/aaaa/bbbb.git
- Run the command-line command to build the local repository with git.
git clone https://gitee.com/aaaa/bbbb.git
C:\Users\home>pushd E:\Downloads\documents\STS_projects
E:\Downloads\documents\STS_projects>git clone https://gitee.com/aaaa/bbbb.git
Cloning into 'bbbb'...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (7/7), done.
- Copy source code into the folder.
- On Windows, change settings for LF --> CRLF,
git config --global core.autocrlf true
- Add the source code into local-repository.
git add .
- Submit the changes into local-repository.
git commit -m "some message"
- Push the files to the remote.
git push
E:\Downloads\documents\STS_projects\xyhdivided>git push
Counting objects: 387, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (376/376), done.
Writing objects: 100% (387/387), 154.16 KiB | 1.51 MiB/s, done.
Total 387 (delta 132), reused 0 (delta 0)
remote: Resolving deltas: 100% (132/132), done.
remote: Powered by Gitee.com
To https://gitee.com/aaaa/bbbb.git
667deec..34d070e master -> master
Tips
Reset local changes and use remote version to overwrite local-version.
git reset --hard
git pull