美文网首页
2018-08-13 Build new project on

2018-08-13 Build new project on

作者: 猪迹 | 来源:发表于2018-08-13 10:29 被阅读0次
    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

    相关文章

      网友评论

          本文标题:2018-08-13 Build new project on

          本文链接:https://www.haomeiwen.com/subject/twjybftx.html