青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

隨筆 - 42  文章 - 3  trackbacks - 0
<2012年7月>
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

常用鏈接

留言簿(2)

隨筆檔案

文章檔案

網(wǎng)頁收藏

搜索

  •  

最新評論

閱讀排行榜

評論排行榜

Create a new local repository:
prompt> mkdir /path/to/repo:
prompt> cd /path/to/repo
prompt> git init
Initialized empty Git repository in /path/to/repo/.git/
prompt>
... create file(s) for first commit ...
prompt> git add .
prompt> git commit -m 'initial import'
Created initial commit bdebe5c: initial import.

1 files changed, 1 insertions(+), 0 deletions(-)
Note that the commit action only commits to your local repository.

Change one of my github repo name in two steps:

Firstly, cd to your local git directory, and find out what remote name(s) refer to that URL

$ git remote -v origin  git@github.com:someuser/someproject.git 

Then, set the new URL

$ git remote set-url origin git@github.com:someuser/newprojectname.git 

or in older versions of git, you might need

$ git remote rm origin $ git remote add origin git@github.com:someuser/newprojectname.git 

(origin is the most common remote name, but it might be called something else.)

But if there's lots of people who are working on your project, they will all need to do the above steps, and maybe you don't even know how to contact them all to tell them. That's what #1 is about.

Further reading:

Footnotes:

1 The exact format of your URL depends on which protocol you are using, e.g.

push your local repository into remote repository:
prompt>git push origin master
To amend the last wrong commit:

git commit --amend -m "New commit message"

 

If the commit you want to fix isn’t the most recent one:

  1. git rebase --interactive $parent_of_flawed_commit

    If you want to fix several flawed commits, pass the parent of the oldest one of them.

  2. An editor will come up, with a list of all commits since the one you gave.

    1. Change pick to reword (or on old versions of Git, to edit) in front of any commits you want to fix.
    2. Once you save, git will replay the listed commits. 

  3. Git will drop back you into your editor for every commit you said you want to reword, and into the shell for every commit you wanted to edit. If you’re in the shell:

    1. Change the commit in any way you like.
    2. git commit --amend
    3. git rebase --continue

Most of this sequence will be explained to you by the output of the various commands as you go. It’s very easy, you don’t need to memorise it – just remember that git rebase --interactive lets you correct commits no matter how long ago they were.

Today, when I try to push some code to the remote, it told me the there is a permission issue, I finally fixed it by created a new key, add it to my git account and local account. Here is the process of adding to local


$ git push -u origin master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

$ ssh -vT git@github.com
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: Connection established.
debug1: No more authentication methods to try.
Permission denied (publickey).

$  ssh-add -l
Could not open a connection to your authentication agent.

$ eval `ssh-agent`
Agent pid 4968

If you did not have a key, generate one according this 
https://help.github.com/articles/generating-ssh-keys

then add the key
$  ssh-add /c/Users/li/.ssh/key
Identity added: /c/Users/li/.ssh/key

$ ssh -vT git@github.com
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: Connection established.
debug1: identity file /c/Users/li/.ssh/identity type -1

Hi ***! You've successfully authenticated, but GitHub does not provide shell access.
debug1: channel 0: free: client-session, nchannels 1
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.3 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 1


$ git push -u origin master
Counting objects: 46, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (42/42), done.
Writing objects: 100% (46/46), 21.33 KiB, done.
Total 46 (delta 1), reused 0 (delta 0)

Clone your repository

Create a new repository in a new directory via the following commands.

 

# Switch to home
cd ~
# Make new directory
mkdir repo02

# Switch to new directory
cd ~/repo02
# Clone
git clone ../remote-repository.git . 

 

posted on 2012-07-09 22:04 鷹擊長空 閱讀(485) 評論(0)  編輯 收藏 引用

只有注冊用戶登錄后才能發(fā)表評論。
網(wǎng)站導航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            欧美色区777第一页| 久久精品国产精品亚洲精品| 久久亚洲电影| 国产香蕉97碰碰久久人人| 制服丝袜激情欧洲亚洲| 欧美成人影音| 久久先锋影音| 一区二区视频免费在线观看| 亚洲欧美久久久| 亚洲第一在线综合网站| 久久精品91| 国产主播精品在线| 久久久国产成人精品| 性欧美暴力猛交另类hd| 国产综合色产| 最新国产乱人伦偷精品免费网站| 欧美日韩成人一区| 午夜久久久久| 久久久午夜视频| 99精品视频免费| 亚洲欧美成人| 亚洲国产你懂的| 亚洲色图自拍| 激情婷婷欧美| 日韩一级大片| 国内精品视频在线播放| 91久久精品www人人做人人爽| 欧美日韩一区二区三区在线观看免 | 久久aⅴ乱码一区二区三区| 亚洲一区二区三区欧美| 精久久久久久| 一区二区三区免费看| 国产一区白浆| 夜夜夜久久久| 伊人婷婷欧美激情| 这里只有精品丝袜| 亚洲国产精品综合| 午夜精品在线| 亚洲无人区一区| 蜜桃av噜噜一区二区三区| 亚洲欧美日韩精品| 欧美日韩麻豆| 欧美高清在线一区| 国产亚洲精品美女| 亚洲麻豆av| 在线观看精品视频| 亚洲性视频网址| 日韩视频精品在线| 久久久久久黄| 欧美在线日韩精品| 欧美激情二区三区| 欧美成人精品激情在线观看| 国产精品久久毛片a| 欧美福利视频一区| 国产亚洲精品久久久久久| 一本一本久久a久久精品牛牛影视| 精品av久久久久电影| 亚洲在线播放电影| 亚洲尤物影院| 欧美日韩免费观看一区二区三区 | 亚洲第一精品夜夜躁人人爽| 国产亚洲毛片在线| 亚洲一区图片| 亚洲少妇自拍| 欧美激情国产日韩精品一区18| 蜜桃精品久久久久久久免费影院| 国产精品私拍pans大尺度在线| 一区二区三区国产精品| 亚洲精品一区二区三区婷婷月 | 性久久久久久久久| 性欧美video另类hd性玩具| 国产精品av一区二区| 亚洲蜜桃精久久久久久久| 日韩视频免费看| 欧美日本韩国| 亚洲毛片一区| 亚洲一区二区三区在线视频| 欧美日韩免费观看一区三区 | 午夜亚洲伦理| 国产精品扒开腿爽爽爽视频| 亚洲欧洲精品一区二区三区不卡| 18成人免费观看视频| 久久伊人精品天天| 亚洲人成人99网站| 亚洲男人的天堂在线观看| 国产精品视频在线观看| 久久久国产成人精品| 欧美成人有码| 亚洲资源av| 国产午夜精品理论片a级大结局 | 亚洲国语精品自产拍在线观看| 亚洲大胆人体在线| 欧美日韩免费观看一区二区三区| 中文久久精品| 欧美亚洲在线| 在线欧美影院| 欧美日韩一区二区三区四区五区| 亚洲乱码国产乱码精品精天堂| 亚洲一区二区视频在线| 国产一区二区观看| 免费成人小视频| 日韩午夜在线播放| 久久―日本道色综合久久| 亚洲激情视频在线| 欧美体内she精视频在线观看| 亚洲女爱视频在线| 乱人伦精品视频在线观看| 一区二区激情| 伊人一区二区三区久久精品| 欧美日韩一区二区三区四区五区| 欧美一区三区二区在线观看| 亚洲精品国产精品乱码不99按摩| 欧美中日韩免费视频| 亚洲美女福利视频网站| 国产美女一区二区| 欧美激情精品久久久| 亚洲永久免费观看| 亚洲国产婷婷香蕉久久久久久99| 欧美在线999| aa亚洲婷婷| 亚洲国产欧美一区二区三区久久| 国产精品女主播一区二区三区| 久久全球大尺度高清视频| 亚洲少妇中出一区| 欧美国产精品v| 久久久久成人精品免费播放动漫| 亚洲婷婷综合色高清在线| ●精品国产综合乱码久久久久| 国产欧美亚洲精品| 欧美视频福利| 欧美乱妇高清无乱码| 狼人社综合社区| 久久婷婷国产麻豆91天堂| 午夜精品国产更新| 亚洲视频一区二区| 亚洲国产cao| 老司机精品视频网站| 久久免费的精品国产v∧| 亚洲夜晚福利在线观看| 亚洲精品久久久久| 亚洲电影免费观看高清完整版在线观看 | 日韩午夜免费| 亚洲国产另类久久久精品极度| 国产欧美日韩一级| 国产精品福利久久久| 欧美午夜精品理论片a级按摩| 免费日韩成人| 久久综合九色欧美综合狠狠| 欧美在线视频网站| 欧美一级专区免费大片| 亚洲自拍偷拍福利| 中文久久乱码一区二区| 亚洲影院高清在线| 亚洲永久免费精品| 亚洲欧美日本国产有色| 午夜激情久久久| 亚洲欧美日韩精品久久| 亚洲欧美日韩另类| 久久大香伊蕉在人线观看热2| 性久久久久久久久| 久久九九国产| 免费观看日韩| 欧美精品一区二区三区在线播放 | 国产色综合久久| 韩国在线视频一区| 亚洲精品国产精品国产自| 日韩一级精品| 亚洲欧美视频| 美日韩免费视频| 亚洲精品国精品久久99热一| 亚洲国产精品热久久| 亚洲九九爱视频| 亚洲一级黄色| 久热精品视频| 欧美日韩一区二区三区在线观看免| 欧美深夜福利| 韩日在线一区| 夜夜夜精品看看| 欧美一级二级三级蜜桃| 免费亚洲电影| 亚洲作爱视频| 欧美在线免费| 欧美日韩国产美女| 国模吧视频一区| 中文国产一区| 免费成人网www| 亚洲一区二区黄色| 美女网站久久| 国产精品一区二区在线观看网站| 一区二区视频欧美| 亚洲一区二区三区乱码aⅴ| 久久这里有精品15一区二区三区| 亚洲国产视频a| 欧美一区国产二区| 欧美日韩在线播| 在线观看国产精品淫| 欧美一站二站| 日韩一级成人av| 欧美福利精品| 伊人成年综合电影网|