GitHub设置ssh免用户名和密码push 从github上 clone项目后,想提交修改,需要具有提交权限。 但在自己的fork项目上,添加ssh认证后,发现push还要输入用户名和密码。 原来clone的时候,使用的是https,而不是ssh。 ``` $ cat .git/config [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] url = https://github.com/userxxx/projectyyy fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master ``` 需要更新一下origin为ssh方式。 ``` $ git remote remove origin $ git remote add origin git@github.com:userxxx/projectyyy.git $ cat .git/config [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [branch "master"] [remote "origin"] url = git@github.com:userxxx/projectyyy.git fetch = +refs/heads/*:refs/remotes/origin/* ``` 重新设置track branch ``` $ git pull origin master $ git branch --set-upstream-to=origin/master master ``` 再重新提交 `git push origin master`
author | cameron.barnes |
---|---|
permlink | github-ssh-push-20200318 |
category | hive-132971 |
json_metadata | "{"app": "beem/0.20.23", "links": ["https://github.com/userxxx/projectyyy"], "tags": ["hive-132971", "cn", "mini", "jjm", "cn-reader", "esteem", "steemleo", "zzan", "hive-143316", "cn-curation", "sct", "dblog", "whalepower", "actnearn", "neoxian", "palnet", "upfundme", "lassecash", "lifestyle", "mediaofficials", "busy", "wherein", "steempreak", "cn-marlians"]}" |
created | 2020-03-17 16:09:33 |
last_update | 2020-03-17 16:09:33 |
depth | 0 |
children | 1 |
last_payout | 2020-03-24 16:09:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 1.384 HBD |
curator_payout_value | 1.278 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 950 |
author_reputation | 2,927,734,851,797 |
root_title | GitHub设置ssh免用户名和密码push |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 96,439,541 |
net_rshares | 10,718,491,167,879 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
rivalhw | 0 | 704,427,669,846 | 50% | ||
justyy | 0 | 2,467,352,855,620 | 11.74% | ||
happyukgo | 0 | 565,839,250 | 11.74% | ||
virus707 | 0 | 162,146,190,533 | 1% | ||
cn-reader | 0 | 10,014,803,068 | 50% | ||
superbing | 0 | 3,817,074,281 | 11.74% | ||
dailyfortune | 0 | 1,427,918,172 | 11.74% | ||
dailystats | 0 | 7,314,511,379 | 11.74% | ||
jianan | 0 | 4,055,918,517 | 11.74% | ||
anxin | 0 | 279,405,723 | 11.74% | ||
woolfe19861008 | 0 | 235,919,621 | 11.74% | ||
dongfengman | 0 | 1,345,352,685 | 11.74% | ||
serenazz | 0 | 100,110,738 | 11.74% | ||
ethanlee | 0 | 393,940,882 | 11.74% | ||
fanso | 0 | 114,689,278 | 11.74% | ||
lilypang22 | 0 | 115,696,579 | 11.74% | ||
fishcc | 0 | 525,068,694 | 11.74% | ||
fishdd | 0 | 420,470,766 | 11.74% | ||
sweet-jenny8 | 0 | 2,614,885,152 | 11.74% | ||
atinna | 0 | 541,539,462 | 11.74% | ||
moneybaby | 0 | 819,780,550 | 2.5% | ||
team-cn | 0 | 28,565,042,892 | 3% | ||
wanggang | 0 | 4,523,074,863 | 0.6% | ||
weicomenew | 0 | 600,735,963 | 11.74% | ||
laiyuehta | 0 | 502,688,039 | 11.74% | ||
turtlegraphics | 0 | 265,872,218 | 11.74% | ||
jayplayco | 0 | 21,298,073,515 | 0.85% | ||
witnesstools | 0 | 831,343,106 | 11.74% | ||
ilovecoding | 0 | 815,887,539 | 11.74% | ||
steemfuckeos | 0 | 376,359,652 | 11.74% | ||
jjm13 | 0 | 900,019,760 | 1% | ||
cplusplus | 0 | 812,655,073 | 11.74% | ||
cn-leo | 0 | 114,742,151 | 2% | ||
cn-pal | 0 | 610,161,468 | 5% | ||
justsoso | 0 | 168,454,598 | 11.74% | ||
cn-neoxag | 0 | 102,780,647 | 5% | ||
dappcoder | 0 | 268,830,591,260 | 100% | ||
tex.fund | 0 | 321,192,125 | 100% | ||
hnt | 0 | 705,057,782 | 100% | ||
acu.fund | 0 | 327,597,122 | 100% | ||
mana.bank | 0 | 896,416,239 | 100% | ||
acu.fund.witness | 0 | 596,066,565 | 100% | ||
spbank | 0 | 2,821,386,866 | 100% | ||
yaowl | 0 | 498,414,871 | 100% | ||
alanyao | 0 | 707,180,942 | 100% | ||
missingwolf | 0 | 528,406,221 | 100% | ||
xinhuaren | 0 | 497,136,809 | 100% | ||
acufund | 0 | 488,891,395 | 100% | ||
downvoter | 0 | 114,317,734,146 | 100% | ||
manabot1 | 0 | 486,715,330 | 100% | ||
manabot | 0 | 490,977,293 | 100% | ||
huaren.news | 0 | 6,844,395,317,588 | 100% | ||
cameron.barnes | 0 | 392,274,502 | 100% | ||
manabot2 | 0 | 482,757,141 | 100% | ||
sherryzhou | 0 | 600,724,268 | 100% | ||
goodvoter | 0 | 560,056,588 | 100% | ||
anonymity.inlet | 0 | 211,093,090 | 100% | ||
manabot3 | 0 | 485,887,091 | 100% | ||
manabot4 | 0 | 0 | 100% | ||
manabank | 0 | 467,647,925 | 100% | ||
texfund | 0 | 479,012,751 | 100% | ||
goodposter | 0 | 479,128,384 | 100% | ||
goodcurator | 0 | 2,194,653,355 | 100% | ||
goodauthor | 0 | 519,426,860 | 100% | ||
shanyi | 0 | 580,652,989 | 100% | ||
yuwenzhaobin | 0 | 0 | 100% | ||
huangyiru | 0 | 554,426,052 | 100% | ||
qiuruling | 0 | 577,089,860 | 100% | ||
tongpingxia | 0 | 46,263,780 | 100% | ||
fushuo | 0 | 655,254,145 | 100% | ||
downscaner | 0 | 535,737,887 | 100% | ||
wang.han | 0 | 537,892,699 | 100% | ||
anonym.inlet | 0 | 757,280,544 | 100% | ||
rongyongyu | 0 | 614,155,906 | 100% | ||
heyaochen | 0 | 1,007,471,950 | 100% | ||
miyijuan | 0 | 581,203,173 | 100% | ||
xiangsong | 0 | 487,250,019 | 100% | ||
haiyaochang | 0 | 115,216,891 | 100% | ||
zhangyanxie | 0 | 609,445,151 | 100% | ||
jiduanren | 0 | 559,676,123 | 100% | ||
hanyiya | 0 | 618,213,745 | 100% | ||
guxiefeng | 0 | 595,259,717 | 100% | ||
hejuangang | 0 | 719,842,434 | 100% | ||
mengyin | 0 | 643,288,930 | 100% | ||
liaohepeng | 0 | 666,994,966 | 100% | ||
gaituan | 0 | 629,187,182 | 100% | ||
quxibei | 0 | 572,859,041 | 100% | ||
florianopolis | 0 | 1,088,197,984 | 1% | ||
huarennews | 0 | 524,288,695 | 100% | ||
qukehan | 0 | 97,478,592 | 100% | ||
lvziyun | 0 | 3,129,203,337 | 100% | ||
telangpu | 0 | 227,308,074 | 100% | ||
chinesebi | 0 | 19,585,441,220 | 100% | ||
erlcet | 0 | 542,598,330 | 11.74% | ||
staryao | 0 | 849,088,603 | 100% | ||
steeemmonsters | 0 | 541,319,263 | 11.74% | ||
wilhb82 | 0 | 539,808,944 | 11.74% | ||
morningshlne | 0 | 542,156,002 | 11.74% | ||
leodec | 0 | 542,305,686 | 11.74% | ||
william.turner | 0 | 32,004,240 | 100% | ||
alyssa.mey | 0 | 31,547,777 | 100% | ||
raven.mottram | 0 | 25,713,809 | 100% | ||
brian.shanno | 0 | 0 | 100% | ||
annmarie.prigge | 0 | 116,486,065 | 100% | ||
meaghan.dajer | 0 | 20,461,388 | 100% | ||
longye | 0 | 17,986,182 | 100% | ||
wangping | 0 | 17,346,984 | 100% | ||
likeqianq | 0 | 15,833,314 | 100% | ||
jinpingxi | 0 | 18,757,700 | 100% | ||
gavinyao | 0 | 27,747,712 | 100% | ||
dragon8king | 0 | 29,173,138 | 100% | ||
steem.buzz | 0 | 880,514,956 | 100% | ||
gavin.yao | 0 | 654,120,710 | 100% | ||
wangfang | 0 | 494,169,235 | 100% | ||
zhangjin | 0 | 108,284,678 | 100% | ||
china.news | 0 | 26,131,496 | 100% | ||
newcoder | 0 | 23,741,769 | 100% | ||
coderhappy | 0 | 122,961,597 | 100% | ||
siturenxiong | 0 | 29,628,181 | 100% | ||
yukaiyi | 0 | 26,392,745 | 100% | ||
news.bot | 0 | 28,799,952 | 100% | ||
douxili | 0 | 31,320,529 | 100% | ||
suckmydick | 0 | 364,651,329 | 11.74% | ||
chromebook | 0 | 356,930,788 | 11.74% | ||
voterking | 0 | 26,755,579 | 100% | ||
ericandryan | 0 | 1,190,571,323 | 11.74% | ||
mailporpor1 | 0 | 0 | 100% |
He said, ***'Stop doing wrong things and turn back to God! The kingdom of heaven is almost here.***'(Matthew 3:2) ## *Bro. Eli Challenges Atheism Belief, There is No God* Watch the Video below to know the Answer... ***(Sorry for sending this comment. We are not looking for our self profit, our intentions is to preach the words of God in any means possible.)*** https://youtu.be/QqkuNRO4Bt4 Comment what you understand of our Youtube Video to receive our full votes. We have 30,000 #SteemPower. It's our little way to **Thank you, our beloved friend.** Check our [Discord Chat](https://discord.gg/vzHFNd6) Join our Official Community: https://steemit.com/created/hive-182074
author | florianopolis |
---|---|
permlink | 2r19hi1hctr |
category | hive-132971 |
json_metadata | "" |
created | 2020-03-17 16:17:48 |
last_update | 2020-03-17 16:17:48 |
depth | 1 |
children | 0 |
last_payout | 2020-03-24 16:17:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 682 |
author_reputation | -5,988,767,749,052 |
root_title | GitHub设置ssh免用户名和密码push |
beneficiaries | [] |
max_accepted_payout | 10,000.000 HBD |
percent_hbd | 100 |
post_id | 96,439,718 |
net_rshares | 1,087,018,137 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
florianopolis | 0 | 1,087,018,137 | 1% |