git安装和配置

从https://git-scm.com/download/win下载git

其他默认

安装完成后,在任意的文件目录下,右键都可以开打Git的命令行窗口——Git Bash Here

设置全局用户签名

  git config --global user.name "用户名"

  git config --global user.email "用户邮箱"

在当前登录的系统用户路径下,生成~/.gitconfig隐含文件,里面可以看到刚刚设置的信息。如果不用命令设置,也可以直接打开文件进行设置。

 

 

 

 

 

复制代码
# Compiled class file
*.class
 
# Log file
*.log
 
# BlueJ files
*.ctxt
 
# Mobile Tools for Java (J2ME)
.mtj.tmp/
 
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
 
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
 
.classpath
.project
.settings
target
.idea
*.iml
复制代码

 

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
git config --global user.name "WangKun"
git config --global user.email "511332544@qq.com"
 
#mkdir template
#cd template
git init
touch README.md
git add README.md
git add .
git commit -m "first commit"
git remote add origin https://gitee.com/WKLoveStudy/template.git
git push -u origin "master"
 
#查看删除远程仓库
git remote -v
git remote rm origin

  

 

posted @   坤王  阅读(72)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· winform 绘制太阳,地球,月球 运作规律
· 上周热点回顾(3.3-3.9)
点击右上角即可分享
微信分享提示