`
yang_kunlun
  • 浏览: 74359 次
  • 性别: Icon_minigender_1
  • 来自: 地球
最近访客 更多访客>>
社区版块
存档分类
最新评论

Git project with ignore some dir and files

    博客分类:
  • Git
阅读更多
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

    1_1_gitProject.rar

    Git Version Control Cookbook 无水印pdf 0分

    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-project-manager:vscode的Git Project Manager扩展

    Git项目经理 Git项目管理器(GPM)是Microsoft VSCode扩展,可让您直接从VSCode窗口中打开面向git存储库的新窗口。可用命令当前有3种可用的命令,所有命令都可以通过Ctrl + Shift + P (在Mac上为Cmd + Alt + P)...

    gitproject:gitproject

    gitproject:gitproject

    Jump.Start.Git.0994182651

    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 ...

    Professional.Git.epub

    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 ...

    Git.Version.Control.Cookbook.1782168451

    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

    version control with git

    git命令大全-git-cheatsheet.docx

    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 ...

    Professional Git [2017]

    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 ...

    Git.Mastering.Version.Control.pdf

    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-project:git-project.git

    git项目 git项目

    git分支操作可视化展示explain-git-with-d3.zip

    explain-git-with-d3 使用 D3 对 git 的分支操作进行简单的可视化展示。 标签:explain

    Git Learn Version Control with Git A step-by-step Ultimate beginners Guide epub

    Git Learn Version Control with Git A step-by-step Ultimate beginners Guide 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    git要忽略文件的配置

    git上传到源码库要忽略文件的配置,添加到文件夹下vs中上传代码时生成的obj、bin就会自动被忽略

    Android代码-SGit

    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-2.21.0-64-bit.zip

    * "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

    Version Control with Git Powerful tools and techniques for collaborative software development

    Git.for.Teams.1491911182

    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...

Global site tag (gtag.js) - Google Analytics