`

Git for Beginner

阅读更多
How to upload your code to git server?

After installing git, execute these in command line:
git config --global user.name "Your Name"
git config --global user.email "email@example.com

*******
/etc/gitconfig and ~/.gitconfig.
each level overrides values in the previous level.
.gitconfig trump /etc/gitconfig
********

Create SSH key(in ~/.ssh directory):
ssh-kengen -t rasa -C "your email"
id_rsa.pub stores the public key, copy it to Key box in your account settings.
Execute 'ssh -T git@github.com', and check if you've successfully authenticated.

Create a git repository:
1, git clone "url"
2, 'git status' checks status of your files
3, Add new file or make a change of clone file
4, then, git commit -m "explanation"
5, connect to a remote repository using 'git remote add origin "url"
6, git push -u origin master (first time push code to master branch (if the origin exist already, execute 'git remote rm origin' to delete it
7, using git push origin master for each push action

*after you change a file, use "git commit -a -m 'comment' " to commit, then, execute 'git push origin master'





分享到:
评论

相关推荐

    Learn Version Control With Git A step-by-step course for the complete beginner

    Learn Version Control With Git A step-by-step course for the complete beginner(中文)。亚马逊接近满分书籍,中文版。图文并茂。学习Git的好资料。 从官网一页一页的复制过来的,花了不少时间。

    Learn Version Control with Git: A step-by-step course for the complete

    "Learn Version Control with Git" is a beginner-friendly step-by-step course. The book doesn't require a deep technical background. Instead, it's aimed at beginners of version control and/or ...

    Learning Web Design: A Beginner’s Guide to HTML... ..., 5th Edition

    Become familiar with the command line, Git, and other tools in the modern web developer’s toolkit NEW! Get to know the super-powers of SVG graphics Partl. Getting Started 1. Getting Started in Web ...

    git-chglog:在Go(Golang)中实现的CHANGELOG生成器

    :Japanese_symbol_for_beginner: 简单易用CLI的用法非常简单,并且学习成本较低。 例如,最简单的命令是$ git-chglog 。 :rocket: 高灵活性提交消息格式和... CHANGELOG的样式(模板)和... 等...这个怎么运作git-...

    Text-Encryption

    :Japanese_symbol_for_beginner: 设置您的计算机下载 ,安装后转到git bash或cmd窗口并使用以下命令设置您的身份git config --global user.name "Github wala username" git config --global user.email example@...

    gitea-mirror:自托管GIT镜像

    :Japanese_symbol_for_beginner: 我们喜欢改善开源项目。 支持1个小时的开源维护,一次 :rocket: 喜欢开源工具吗? 我也是! 如何一次性花支持一小时的开源开发 :scroll: 许可与行为 :copyright: :megaphone: ...

    Jump Start PHP Environment(SitePoint,2015)

    Many entry level ... This book is aimed at the absolute beginner who wants to start learning PHP, but aims to set you up with a thorough understanding of what makes for a good, modern, adaptable ...

    WebDevelopersTasks

    :Japanese_symbol_for_beginner: 设置您的计算机 下载 ,安装后转到git bash或cmd窗口并使用以下命令设置您的身份 git config --global user.name "Github wala username" git config --global user.email example@...

    Arya-DN

    :Japanese_symbol_for_beginner: Wabot-aq :Japanese_symbol_for_beginner: 简单的WhatsApp机器人 对于TERMUX用户 > pkg update && pkg upgrade > pkg install git -y > pkg install nodejs -y > pkg install ...

    僵尸

    :Japanese_symbol_for_beginner: Wabot-aq :Japanese_symbol_for_beginner: 简单的WhatsApp机器人对于TERMUX用户> pkg update && pkg upgrade> pkg install git -y> pkg install nodejs -y> pkg install ffmpeg -y> ...

    leetcoderust-resources-for-beginner-developers:面向编程初学者的:fire:免费:fire:东西的主观列表

    leetcode 锈初学者资源(正在进行中) 这是初学者开发人员可能需要的免费知识的最终列表。 重要免责声明:如果您对编程一无所知,那么开始做生意一...“Git 很难:搞砸很容易,而弄清楚如何解决你的错误他妈的不可能(.

    js-frameworks-for-modern-web-dev:Sufyan bin Uzayr,Nicholas Cloud和Tim Ambler撰写的“现代Web开发JavaScript框架,第二版”的源代码-web development source code

    使用绿色按钮将文件下载为zip格式,或使用Git将存储库克隆到您的计算机上。 发行版 版本v1.0对应于已出版书籍中的代码,没有更正或更新。 会费 请参阅文件Contributing.md,以获取有关如何为该存储库做出贡献的更多...

    leetcode卡-cx-blog:个人博客

    :Japanese_symbol_for_beginner: Javascript :Japanese_symbol_for_beginner: router :registered:正则表达式 :pushpin:Git :eject_button:ES6 :notebook_with_decorative_cover:nodejs脚本 :hourglass_not_done:...

    Linux Shell Scripting Cookbook - Third Edition

    If you are a beginner or an intermediate Linux user who wants to master the skill of quickly writing scripts and automate tasks without reading the entire man pages, then this book is for you....

    Collaboration-For-Beginners:在开源项目中贡献的初学者指南

    git clone https://github.com/udit-001/Collaboration-For-Beginners.git 将上面的git repo链接替换为您刚创建的fork的链接。 现在,在更改文件之前,让我们采用不同于您在Internet上看到的普通教程的方法,并...

    node-github.js:Github API V3的轻量级且完全维护的NodeJS包装器

    :Japanese_symbol_for_beginner: 简单化:构建适合初学者的产品,以满足每个人的需求。安装npm install node-github.js依存关系这取决于为主要依赖和解析由数据返回的日期/时间。 npm install宣言const git = ...

    Calculate-Distance-Matrix:使用 csv 获取两个位置之间的距离或时间

    计算距离矩阵 :Japanese_symbol_for_beginner: · :thinking_face: 关于该项目该程序使用 Janson-Shanon 算法计算距离矩阵,得出两个位置之间的距离或旅行时间的结果。 使用方法非常简单,只要在处理完文件后立即在...

    pixi-typescript-boilerplate:pixi.js 打字稿初学者友好的样板

    :Japanese_symbol_for_beginner: - 初学者友好。 :hammer_and_wrench: - 打字稿 + 巴别塔。 :airplane: - 实时重新加载。 :rocket: - 极快的捆绑时间 :memo: - 使用 Prettier 和 Eslint 的一致代码风格 :memo:...

    pixi-typescript-boilerplate:pixi.js打字稿初学者友好样板

    pixi型脚本样板带有初学者友好模板强调 :Japanese_symbol_for_beginner: -初学者友好。 :hammer_and_wrench: -打字稿+通天塔。 :airplane: -实时重新加载。 :rocket: -快速的捆绑时间 :memo: -使用漂亮和Eslint的...

    infectio

    :Japanese_symbol_for_beginner: -初学者友好。 :hammer_and_wrench: -打字稿+通天塔。 :airplane: -实时重新加载。 :rocket: -快速的捆绑时间 :memo: -使用漂亮和Eslint的代码风格一致 :memo: -使用单元测试...

Global site tag (gtag.js) - Google Analytics