mikebai.com

  • Home
  • dev
  • DotNET
  • M365
  • 搞笑
  • 杂七杂八
  • FocusDict
個人BLOG
it developer
  1. Main page
  2. M365
  3. Main content

github笔记

2019-12-30 106hotness 0likes 0comments


1)
bin以下を無視したいけど、無視したくないファイルも含んでいる、そんなときは次のように書くのが正しいです。

.gitignore

bin/*

!Resource

bin/の後に*を追加しました。あくまでディレクトリを無視したのではなく、ディレクトリ内のファイルを無視しましたので、Resourceの否定が効くようになります。

2)
git 拉取(pull)和获取(fetch)的区别
git  pull     从远程拉取最新版本 到本地  自动合并 merge            git pull origin master
git  fetch   从远程获取最新版本 到本地   不会自动合并 merge    git fetch  origin master     
实际使用中  使用git fetch 更安全   在merge之前可以看清楚 更新情况  再决定是否合并

Tag: Nothing
Last updated:2019-12-30

mikebai

This person is a lazy dog and has left nothing

Like
< Last article
Next article >

COPYRIGHT © 2025 mikebai.com. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang