惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
博客园 - Franky
罗磊的独立博客
G
Google Developers Blog
The GitHub Blog
The GitHub Blog
P
Proofpoint News Feed
Recent Announcements
Recent Announcements
V
V2EX
F
Fortinet All Blogs
阮一峰的网络日志
阮一峰的网络日志
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
U
Unit 42
GbyAI
GbyAI
A
About on SuperTechFans
WordPress大学
WordPress大学
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
Martin Fowler
Martin Fowler
D
DataBreaches.Net
The Cloudflare Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MongoDB | Blog
MongoDB | Blog

博客园 - X龙

远程唤醒wol(Wake On Lan) 我的附件列表 js提交验证 web模拟慢网速环境 按钮提交事件处理(以下方法兼容ie,firefox,chrome) js 格式化日期 div+css搭建系统页面框架 Win7下如何在任务栏显示操作中心的图标 清除右键图形属性 图形选项 .net软件工程师面试知识点 设置JqueryUI DatePicker默认语言为中文 asp.net mvc2升级到asp.net mvc3 pivot与unpivot用法 解决32位ie不能上网,64位ie能上网 seo robots.txt编写 xml xmlnamespace sql server 2005生成insert语句,同时完成多表(Bug:插入语句列列表最后一列列名后还带有,) input type=file显示及清空值 预防SQL注入攻击
github项目管理
X龙 · 2012-09-03 · via 博客园 - X龙

软件环境:windows, githubGit Shell

(使用github当文件比较多的时候会很耗系统资源)

1.    新建项目 

github.com新建repository

(

 使用Git Shell将本地的repository上传到GitHub.com:(所有操作在Git Shell中执行)

  1. 在本地创建repository,使用cd命令定位到你的项目文件夹(例:c:\projects\MyRepo

  2. 运行git init,会在目录下生成".git"隐藏文件夹。

  3. 将项目下的所有文件添加到git中,运行“git add .”(不要“”.表示将目录下所有文件添加到git中)。

  4. 运行git commit -m "提交备注"

  5. 运行git remote add origin https://github.com/(你的库),连接到github.com上你的repository

  6. 运行git push origin master,文件就会同步到github.com

)

2.    向现有添加项目文件并提交

a. 可再次运行git add .添加文件到git中,即使有些文件已经存在。

b. 运行git commit –m “提交说明提交更改。

c. 运行 git push origin master提交至github.com

3.       撤消更改

a.         git revert HEAD                  撤销前一次 commit

b.         git revert HEAD^               撤销前前一次 commit

c.         git revert commit (比如:fa042ce57ebbe5bb9c8db709f719cec2c58ee7ff)撤销指定的版本,撤销也会作为一次提交进行保存。

     d.     恢复某个已修改的文件(撤销未提交的修改):git checkout file-name

*         最后运行 git push origin master提交至github.com

4.      删除文件

    a. git rm myfile.txt。

    b. git commit -m ""。

    c. git push origin master。 

 参考:

http://www.cnblogs.com/fnng/archive/2011/08/25/2153807.html

http://hi.baidu.com/mcspring/item/198f1e977f8f98bccd80e5b3

http://blog.microsuncn.com/?p=1559