前端_git用法

wordpress,typeecho, drupal


wget命令  cgwin是模拟linux系统的命令窗口  flashget下载文件


runJS(github账号登陆)   jsfiddle
oschina 的 杂志 编程狂人

让ie浏览器支持 firefox  调试   内存卡收集 游戏和音乐和flash相声

http://www.cnblogs.com/stoneniqiu/p/3519375.html 网友推荐书籍

说话的魅力(刘墉老先生) 人性的弱点  .撒哈拉的沙漠  看见  曾国藩  富爸爸穷爸爸  构建高性能web站点  浪潮之巅  锋利的jquery

ECMAScript 解释

代码在git上别人怎么修改你的代码

gitcafe 空间
如果喜欢写博客有很多的平台可以选择,像博客园就是Net平台下很好的博客平台,如果想搭建自己的个人博客有独立的域名,WordPress是不错的选择,如果您喜欢折腾,不妨试试Octopress。在环境搭建好的情况下,使用Octopress写博客大致有一下几个步骤:

1. 执行rake new_post['title']来生成一个博文;

2. 找对生成的markdown文件,编辑内容,当然是使用markdown语法来编辑;

3. 执行rake generate来生成文章;

4. 执行rake preview在本地预览;

5. 执行rake deploy发布到Github中。

6. 执行下面命令将修改的源码推送到source分支:

git add .
git commit -m “your message”
git push origin source


--------------------------------------------------------------------
rake setup_github_pages
rake generate
rake preview

rake deploy
rake new_post["title"],会创建一个新的Post,新文件在source/_post下



git status

git add .

git commit -m 'your message'

git push origin source

***修改文件上传

(1)首先用git status命令查看下状态。
(2)用git pull更新代码,确保代码是库上最新代码,防止覆盖其他人的提交。
(3)用git add arch/arm/mach-msm/board-xxx.c把修改后的文件加入到缓冲区。
(4)用git commit提交入库到本地服务器中,这一步会加入注释。
(5)用git log命令查看已提交的修改,是否正确。
(6)用git push命令把本地服务器上的内容更新到远程服务器上。

-----------------------------------------------------------------------------

git add .

git add --update .

git commit -am "add User.java"

***********************************************************************

logep账号


-------------------------------

精简版
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/logep/logep.github.com.git
git push -u origin master
https://github.com/logep/logep.github.com.git
-------------------------------

Step 1: Create the README file
mkdir ~/Hello-World
# Creates a directory for your project called "Hello-World" in your user directory

cd ~/Hello-World
# Changes the current working directory to your newly created directory

git init
# Sets up the necessary Git files
# Initialized empty Git repository in /Users/you/Hello-World/.git/

touch README
# Creates a file called "README" in your Hello-World directory

Step 2: Commit your README
git add README
# Stages your README file, adding it to the list of files to be committed

git commit -m 'first commit'
# Commits your files, adding the message "first commit"

Step 3: Push your commit
git remote add origin https://github.com/username/Hello-World.git
# Creates a remote named "origin" pointing at your GitHub repository

git push origin master
# Sends your commits in the "master" branch to GitHub


-----------------------------
github 如何 pull 最新代码

假设你fork的项目原始地址是http://github.com/abc/rep.git, 你自己的是http://github.com/you/rep.git

$ git remote  add upstream http://github.com/abc/rep.git # 你本地的origin应该跟了自己的remote,前且假设当前本地branch是master。
$ git fetch upstream
$ git merge upstream/master  #merge可能会有冲突,手工解决掉并commit
$ git push # push到你自己的fork上

然后向原始项目提交一个pull request。 不知道你是不是想要这个...我现在是通过这种方式更新的,直接用git 的 bash

----------------------------------

github的fork 功能

操作流程:
在开源项目中点击fork按钮,稍等一会儿,该项目便会拷贝一份到你的respositories中,
克隆一份代码到本地:git clone git@github.com:username/Spoon-Knife.git

配置:(项目克隆完成后,默认远程的别名为origin,此为我们自己项目中的版本,并非原始作者的代码库)

创建原始代码库的别名,方便跟踪代码 git remote add upstream git://github.com/octocat/Spoon-Knife.git
git fetch upstream 跟踪原始代码
提交代码更新到自己的代码库 git push origin master
获取原始代码库的更新
git fetch upstream
git merge upstream/master

原文地址:https://www.cnblogs.com/logep/p/3597109.html