美文网首页
GitHub手册速查

GitHub手册速查

作者: Lucifer黄 | 来源:发表于2017-10-16 13:02 被阅读0次

Git global setup

git config --global user.name "your name"

git config --global user.email  "your email"

Create a new repository

git clone git地址

cd YPYB

touch README.md

git add README.md

git commit -m "add README"

git push -u origin master

Existing folder

cd existing_folder

git init

git remote add origin git@172.16.35.19:lihui/YPYB.git

git add .

git commit

git push -u origin master

Existing Git repository

cd existing_repo

git remote add origin git@172.16.35.19:lihui/YPYB.git

git push -u origin --all

git push -u origin --tags

#清楚提交缓存

git rm -r --cached .

git add .

git commit -m 'update .gitignore'

git push -u origin master

删除本地仓库

find . -name ".git" | xargs rm -Rf

提交失败未与服务器同步

git pull --rebase origin master

提交修改

git add --update .

查看git状态

git status

相关文章

  • GitHub手册速查

    Git global setup git config --global user.name "your name...

  • Github 风味 Markdown 语法速查手册

    本文目标人群:Markdown 初次使用者,之前使用的是非 Github 风格的 Markdown 的朋友。有经验...

  • Monit 笔记

    文章已经放到我的 github 上 0. 开始之前 本文主要基于 Monit 官方文档, 因此跟偏向于速查手册 整...

  • 速查手册

    Linux命令 查看所有状态的TCP连接 注意:在Ubuntu下要加sudo才可以看到所有的TCP连接。 查看正在...

  • Objective-C 与Swift代码转换速查手册

    Objective-C 与Swift代码转换速查手册

  • web

    手册: javascript在线速查手册 极客战记 - 学编程 用玩的 http://www.softwhy.co...

  • Swift 语法速查手册

    Swift3.0语法速查手册Using Swift with Cocoa and Objective-CApple...

  • 《开发者头条》每日精选(7-5)

    Linux 工具速查手册 linuxtools-rst.readthedocs.org from@WapeYang...

  • Linux题目和简要速查

    发现了一个写的很不错的速查手册,里面的一些内容很有帮助生信人的自我修养:Linux命令速查手册 - 知乎 (zhi...

  • Angular

    TypeScript 速查手册 https://www.w3cschool.cn/typescript/types...

网友评论

      本文标题:GitHub手册速查

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