Git不完全配置


Git不完全配置
 
1. Git 全局设置
 
git config --global user.name "your name"
git config --global user.email youmail@xxx.com
2. 创建Git仓库
 
mkdir yourfolder
cd yourfolder
git init
3. 加入文件(将文件放在yourfolder下)
 
git add Filename     加入指定文件
git add . 加入所有文件夹和文件                    
git commit -m "your commit"
git remote add origin https://git.oschina.net/lgl88911/ktvcontrol.git
git push -u origin master
4. 排除文件类型
 
在项目根目录下创建.gitignore文件,在文件中添加要排除的文件类型:
 
*.o 
*.lo 
*.la 
*.al

相关内容

    暂无相关文章