[git] git Process

来源:互联网 发布:和前任做朋友 知乎 编辑:程序博客网 时间:2024/06/05 20:04
  • Edit file from github

    1. Create a new repository in github using the “+” sign on the top right of your screen.
    2. Use git clone https://github.com/... to clone the repository to your computer.
    3. Edit your file.
    4. git add .
    5. git commit -m "command(whatever you want)"
    6. git push origin master
  • Create repository on your computer.

    1. Using cd to the path you want to create repository.
    2. Using mkdir ... to create new repository.
    3. Using git init to initialize the repository.
    4. Using cd... to the new created repository.
    5. Using touch to create files.
    6. Edit the files you create.
0 0