2018-08-13 Build new project on Gitee

  1. Log-in https://gitee.com to create a new project on the web.
  2. Change directory to the folder where you want to save the project files.
  3. From the https://gitee.com, copy the git-command for downloading the project. https://gitee.com/aaaa/bbbb.git
  4. 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.
  1. Copy source code into the folder.
  2. On Windows, change settings for LF --> CRLF, git config --global core.autocrlf true
  3. Add the source code into local-repository. git add .
  4. Submit the changes into local-repository. git commit -m "some message"
  5. 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

Reference

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容