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

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

常用鏈接

留言簿(2)

隨筆檔案

文章檔案

網頁收藏

搜索

  •  

最新評論

閱讀排行榜

評論排行榜

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 鷹擊長空 閱讀(466) 評論(0)  編輯 收藏 引用
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            国产伊人精品| 久久激情中文| 欧美成人黄色小视频| 欧美在线视频免费观看| 久久成人免费网| 免费国产一区二区| 亚洲九九精品| 亚洲女人av| 老司机精品视频网站| 欧美人在线视频| 国产视频不卡| 99re热精品| 久久久av网站| 亚洲毛片av| 久久精品视频亚洲| 亚洲一区二区三区四区五区午夜| 欧美风情在线观看| 欧美理论电影在线观看| 国产精品私拍pans大尺度在线| 国产欧美一区二区三区在线看蜜臀| 国产自产v一区二区三区c| 亚洲欧洲精品一区二区精品久久久 | 猫咪成人在线观看| 欧美四级剧情无删版影片| 国产日韩精品一区二区| 99精品热视频| 久久影院午夜论| 一本大道久久精品懂色aⅴ| 久久免费视频网站| 国产精品久久久久久久久搜平片 | 亚洲国产精品久久久久| 午夜精品福利视频| 最近看过的日韩成人| 亚洲一区二区三区乱码aⅴ蜜桃女| 久久精品在线视频| 国产精品一区一区三区| 中文亚洲欧美| 亚洲伦理在线观看| 欧美激情1区2区| 亚洲高清不卡| 另类激情亚洲| 久久av一区二区| 国产欧美一区二区色老头| 亚洲深夜激情| 亚洲精品一区二区三区婷婷月| 久久成人资源| 国内精品久久久| 久久九九免费视频| 欧美一区二区三区四区在线| 国产精品试看| 亚洲欧美日韩国产| 中日韩美女免费视频网站在线观看| 欧美精品一区二区在线观看| 亚洲精品国产视频| 亚洲国产一区二区三区青草影视| 久久中文久久字幕| 亚洲精品欧美极品| 亚洲人成亚洲人成在线观看| 欧美激情在线观看| 亚洲图片欧洲图片av| 日韩视频中文字幕| 欧美三级视频| 午夜一区二区三区不卡视频| 亚洲免费在线电影| 国产亚洲欧洲一区高清在线观看 | 亚洲精品在线一区二区| 亚洲综合999| 亚洲天堂成人在线视频| 亚洲免费观看高清完整版在线观看熊 | 欧美成人情趣视频| 夜久久久久久| 一区二区三区不卡视频在线观看| 欧美精品国产精品日韩精品| 在线视频日韩| 亚洲男人天堂2024| 精品动漫3d一区二区三区| 欧美福利电影在线观看| 欧美成人午夜| 亚洲免费婷婷| 久久久91精品国产一区二区三区 | 久久国产精品久久w女人spa| 久久av最新网址| 日韩视频免费在线| 亚洲自拍都市欧美小说| 在线观看91精品国产入口| 亚洲国产精品va在线看黑人动漫| 欧美日韩另类丝袜其他| 欧美在线日韩精品| 欧美国产一区二区三区激情无套| 亚洲无玛一区| 久久精品亚洲精品| 一区二区三区欧美在线| 欧美一区二区三区四区视频| 日韩亚洲欧美在线观看| 欧美有码在线视频| 在线亚洲国产精品网站| 欧美在线视频一区| 亚洲网站在线看| 免费观看日韩av| 久久精品99无色码中文字幕| 欧美精品高清视频| 美女精品一区| 国产麻豆日韩欧美久久| 亚洲精品无人区| 亚洲电影免费在线观看| 性色av一区二区三区在线观看| 日韩亚洲欧美一区| 久久久久久日产精品| 欧美亚洲专区| 国产精品成人一区二区网站软件 | 久久香蕉国产线看观看av| 欧美日一区二区三区在线观看国产免| 久久三级福利| 国产精品白丝av嫩草影院| 欧美黑人多人双交| 久久亚洲不卡| 久久视频免费观看| 亚洲欧洲一级| 亚洲第一天堂av| 亚洲欧美日韩一区二区三区在线| 亚洲欧洲一区二区在线播放| 久久国内精品视频| 欧美一区二区在线视频| 欧美特黄一级| 日韩一级黄色大片| 一区二区三区国产精华| 欧美成年人网站| 欧美黑人国产人伦爽爽爽| 在线观看欧美精品| 久久精品国产综合精品| 欧美在线网站| 国产日韩欧美亚洲| 午夜伦理片一区| 久久精品成人| 韩日欧美一区| 久久另类ts人妖一区二区| 久久久久亚洲综合| 伊人久久大香线| 欧美~级网站不卡| 欧美激情第五页| 99pao成人国产永久免费视频| 欧美精品日韩| 一本大道久久a久久精二百| 亚洲一区精彩视频| 国产麻豆精品theporn| 欧美一区二区三区男人的天堂| 久久精品99国产精品日本| 激情综合视频| 欧美日韩爆操| 性色av香蕉一区二区| 老鸭窝毛片一区二区三区| 亚洲黄色小视频| 欧美日韩大片| 午夜精品一区二区三区在线播放| 欧美在线观看网站| 亚洲福利小视频| 欧美日韩亚洲综合| 性xx色xx综合久久久xx| 欧美**人妖| 国产精品99久久久久久人| 国产精品视频久久| 久久精品日韩一区二区三区| 欧美激情视频一区二区三区在线播放| 99国产精品视频免费观看一公开 | 欧美一级久久久| 在线精品视频在线观看高清| 欧美精品在线免费播放| 亚洲欧美第一页| 欧美激情精品久久久久| 亚洲天堂久久| 亚洲国产高清视频| 国产乱码精品一区二区三区av| 久久青青草原一区二区| 在线一区欧美| 亚洲丁香婷深爱综合| 午夜精品在线观看| 亚洲区中文字幕| 国产日韩在线看| 欧美日本高清视频| 久久久久久久91| 亚洲一级片在线看| 亚洲国产精品一区在线观看不卡 | 久久国产精品久久国产精品| 欧美黑人国产人伦爽爽爽| 中文亚洲字幕| 91久久久在线| 国产一区二区三区四区hd| 欧美—级a级欧美特级ar全黄| 亚洲欧美视频在线观看| 亚洲激情自拍| 欧美xxx成人| 久久久激情视频| 亚洲欧美视频一区| 亚洲视频综合| 一本一本a久久| 亚洲人成7777| 亚洲精品美女在线观看播放| 韩国在线一区| 国产综合色产| 国产在线播放一区二区三区|