chenxhjeo / softwareengineer Goto Github PK
View Code? Open in Web Editor NEWsoftware engineer teaching
software engineer teaching
问题描述
实现单台计算机操作两个账号,会出现403报错。
问题原因
Git客户端缓存了错误的密码
git config --global该命令可以将用户名和密码长期全局地长期地存储在客户端(实际是客户端所在电脑,并非git的任何目录下,也就是说,即使重装git,改密码也存在。),注意是全局地。
解决方案
方法一:
增加远程地址的时候带上密码也是可以的。(推荐)
http://yourname:[email protected]/name/project.git
这种方式会把改账号和密码也添加到~/.git-credentials。
方法二:
运行命令:rm ~/.git-credentials,删掉git config --global credential.helper store保存的账号和密码。回到每次输入用户名和密码。
~/.git-credentials
1.当我正在dev分支上进行任务的时候,突然说master上出现了一个bug,但你此时没完成任务,不想提交,那么如何才能做到既修改了这个bug,又能恢复现场后继续工作呢?那就是用git stash命令;
2.然后去修改这个bug,在master上创建一个临时分支,修改后在和主分支合并,接着删除临时分支;
3.修改好了之后不用担心原先的东西不见了,只要你输入 git stash apply,就能恢复现场的工作;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.