1.
git init
2.
If you want to ignore some folders and files,write them into .gitignore
vim .gitignore
for example,we use this gitignore file as default
nbproject
log/*.log
tmp/**/*
config/database.yml
db/schema.rb
db/*.sqlite3
public/javascripts/all.js
public/stylesheets/all.css
.*
*.orig
# Other useful tidbits
.DS_Store
doc/api
doc/app
3.
git status
show the folders and files that should be tracked.
4.
add a new file
vim database-recommended.yml
5.push to server
git add .
git commit -a -m "to server"
git push
分享到:
相关推荐
1_1_gitProject.rar
Starting with the Git data model, you will learn how Git stores files and how it looks at commits. You will then learn how you can recover from mistakes; from committing on the wrong branch to ...
Git项目经理 Git项目管理器(GPM)是Microsoft VSCode扩展,可让您直接从VSCode窗口中打开面向git存储库的新窗口。可用命令当前有3种可用的命令,所有命令都可以通过Ctrl + Shift + P (在Mac上为Cmd + Alt + P)...
gitproject:gitproject
Get started with Git: install it, learn the basic commands, and set up your first project. Work with Git as part of a collaborative team. Use Git's debugging tools for maximum debug efficiency. Take ...
Git works with the most popular software development tools and is used by almost all of the major technology companies. More than 40 percent of software developers use it as their primary source ...
Starting with the Git data model, you will learn how Git stores files and how it looks at commits. You will then learn how you can recover from mistakes; from committing on the wrong branch to ...
version control with git
Add some changes in <file> to the next commit $ git add -p Commit all local changes in tracked files $ git commit -a Commit previously staged changes $ git commit Change the last commit Don‘t amend ...
Git greatly simplifies the software development cycle, enabling users to create, use, and switch between versions as easily as you switch between files. This book shows you how to harness that power ...
Learn everything you need to take full control of your workflow with Git with this curated Learning Path – dive in and transform the way you work About This Book Master all the basic concepts of Git...
git项目 git项目
explain-git-with-d3 使用 D3 对 git 的分支操作进行简单的可视化展示。 标签:explain
Git Learn Version Control with Git A step-by-step Ultimate beginners Guide 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
git上传到源码库要忽略文件的配置,添加到文件夹下vs中上传代码时生成的obj、bin就会自动被忽略
All repositories are stored in [sdcard dir]/Android/data/me.sheimi.sgit/files/[repo name]. If you want to delete this app, you can manually backup repositories from this location. The GitHub repo of ...
* "git help git" was hard to discover (well, at least for some people). * The pattern "git diff/grep" use to extract funcname and words boundary for Rust has been added. * "git status" can be ...
Version Control with Git Powerful tools and techniques for collaborative software development
Instead, this book starts with a 10,000ft view of a software project–with a team of developers, and a preferred delivery methodology. This book will then walk through the source control implications...