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

推荐订阅源

H
Hacker News: Front Page
A
About on SuperTechFans
腾讯CDC
罗磊的独立博客
博客园 - Franky
Last Week in AI
Last Week in AI
博客园_首页
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Register - Security
The Register - Security
云风的 BLOG
云风的 BLOG
L
LangChain Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
D
Docker
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Recorded Future
Recorded Future
Vercel News
Vercel News
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
J
Java Code Geeks
有赞技术团队
有赞技术团队
V
V2EX
IT之家
IT之家
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
雷峰网
雷峰网
Jina AI
Jina AI
B
Blog RSS Feed
H
Help Net Security
N
Netflix TechBlog - Medium
Latest news
Latest news
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 司徒正美
Y
Y Combinator Blog
人人都是产品经理
人人都是产品经理
Stack Overflow Blog
Stack Overflow Blog
C
Cisco Blogs
Microsoft Security Blog
Microsoft Security Blog
阮一峰的网络日志
阮一峰的网络日志
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
大猫的无限游戏
大猫的无限游戏
C
Check Point Blog
P
Proofpoint News Feed
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
N
News and Events Feed by Topic
T
Threatpost

博客园 - 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