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

推荐订阅源

爱范儿
爱范儿
博客园_首页
W
WeLiveSecurity
S
Secure Thoughts
S
Security @ Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Hugging Face - Blog
Hugging Face - Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Hacker News: Front Page
Project Zero
Project Zero
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
U
Unit 42
N
News and Events Feed by Topic
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Forbes - Security
Forbes - Security
T
Tor Project blog
I
Intezer
B
Blog
F
Full Disclosure
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Fortinet All Blogs
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
AI
AI
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
Cloudbric
Cloudbric
L
Lohrmann on Cybersecurity
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
P
Privacy International News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
PCI Perspectives
PCI Perspectives
Y
Y Combinator Blog
Spread Privacy
Spread Privacy
Simon Willison's Weblog
Simon Willison's Weblog
罗磊的独立博客
Vercel News
Vercel News
A
Arctic Wolf
The Register - Security
The Register - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
H
Heimdal Security Blog
Know Your Adversary
Know Your Adversary
P
Proofpoint News Feed
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed

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