Jump to content

GIT


Recommended Posts

В какой то момент времени перешел на GIT с Subversion, и ни разу не пожалел о этом. По началу конечно GIT показался сложным. Но со временем освоил основные команды, и их стало вполне хватать для большей части повседневных задач.

Тут размещу команды, которые хочется просто где то сохранить чтобы потом по-быстрому найти:

Найти все отслеживаемые файлы из .gitignore
git ls-files -ci --exclude-standard

убрать из GIT все файлы, которые не подходят по .gitignore
git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached

Игнор file permissions

git config core.fileMode false

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...