github 项目上传和下载git push,git pull
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
![](https://devpress.csdnimg.cn/6deffb34f7114cc1a2e1e686a67e0027.png)
·
首先系统配置git,移步linux 配置git环境,ssh远程登录.
1.全局配置信息用户的用户名和email.
$ git config --global user.name "liguangxian"
$ git config --global user.email "2995183552@qq.com"
2.项目配置信息用户的用户名和email.(可以在一个系统上连接多个github)
$ git config user.name "liguangxian"
$ git config user.email "2995183552@qq.com"
3.Git的全局配置文件是存放在”~/.gitconfig”(用户目录下的.gitconfig)文件中.
me@me:~$ cat .gitconfig
[user]
name = liguangxian
email = 2995183552@qq.com
4.新建本地仓库timing.
mkdir timing
cd timing
git init
5.github远程创建仓库.
6.添加远程地址.(5.创建远程仓库的URL)
$ git remote add origin git@github.com:liguangxian/timing
7.查看当前目录下.git/config.也可以直接修改config来配置远程地址 .
me@me:~/Desktop/timing/.git$ cat config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = git@github.com:liguangxian/timing
fetch = +refs/heads/*:refs/remotes/origin/*
8.上传项目:
git add -A
git commit -m "first commit"
9.git push.
git push origin master
10.git pull.
git pull origin master
11. git clone到本地.
git clone https://github.com/liguangxian/timing.git
参考:git push & git pull 推送/拉取分支https://blog.csdn.net/litianze99/article/details/52452521
使用Git上传项目代码到github:https://blog.csdn.net/top_code/article/details/50241999
![]( https://profile-avatar.csdnimg.cn/default.jpg)
![](https://devpress.csdnimg.cn/7174e1ca86c447029bb12f9ec0bd281c.png)
![](https://devpress.csdnimg.cn/096f7827187446559bd7b6030eb5db38.png)
![](https://devpress.csdnimg.cn/6deffb34f7114cc1a2e1e686a67e0027.png)
A beautiful web dashboard for Linux
最近提交(Master分支:5 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
所有评论(0)