
Git
lianghyan
喜欢旅游,不喜欢固定一层不变的生活
展开
-
create a docker image and run with port map
FROM ubuntu RUN mkdir opt/fsd RUN apt-get update RUN apt install vim --assume-yes ADD jdk-11.0.9_linux-x64_bin.tar.gz opt/fsd ENV JAVA_HOME=/opt/fsd/jdk-11.0.9 ENV PATH=$JAVA_HOME/bin:$PATH ENV CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_H原创 2020-12-29 11:44:29 · 121 阅读 · 0 评论 -
Git 取消http proxy设置
>git config -l ........ ......... http.proxy=socks5://127.0.0.1:1080 >git config --global --unset http.proxy>>git config -lno http.proxy configuration原创 2020-09-30 23:21:36 · 3639 阅读 · 0 评论 -
Git connection error
nc: connection failed, SOCKS error 5ssh_exchange_identification: Connection closed by remote hostfatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.纠结了一天的问题,最后尝试,是因为使用了代理,而代理已.原创 2020-09-11 17:07:22 · 610 阅读 · 0 评论 -
Git - 将主分支的更新 同步到个人分支
多人写作项目中, 需要建立一个主分支, 将可发布的代码提交进来。 日常开发, 个人的代码提交到个人的分支。1. 在git server 上, 在一个repository中, 可以fork出个人分支, 就是我们自己的workspace一. 建立本地工作环境 a. 初始化本地环境 >git init b. git remote 关联远程仓库, 注:自主建...原创 2020-04-24 21:25:12 · 10258 阅读 · 0 评论 -
git config
In a repository, variable definition is put in hidden file .git/config. Use Git Bash, enter folder .git and Input command ls -al config, you will find the file.1. browse the configgit config -l原创 2016-04-15 13:50:51 · 354 阅读 · 0 评论 -
start Git on window7
1. download from https://git-for-windows.github.io/原创 2016-04-12 17:41:04 · 413 阅读 · 0 评论 -
Git file
In a local repository.1. add first.txt to repository, use Git bash$ git add first.txt2. commit change$ git commit -m 'my first commit'3. check content change$ git diff first.txt4原创 2016-04-15 14:50:21 · 337 阅读 · 0 评论