“Git ignorieren lokale Dateien” Code-Antworten

Git ignorieren lokale Dateiänderungen

# To skip local changes to files managed by git
$ git update-index --skip-worktree path/to/file
# To restore normal git behaviour
$ git update-index --no-skip-worktree path/to/file

# assume-unchanged can also be used, it's designed for local files that DON'T change
# git reset --hard will drop files ignored through assume-unchanged
$ git update-index --assume-unchanged path/to/file
$ git update-index --no-assume-unchanged path/to/file
Dopey Diplodocus

Git ignorieren lokale Dateien

<!---- git ignore local files---->

echo YOURFILE_OR_DIRECTOY >> .git/info/exclude 

<!---- Description 
If you don't want to create a .gitignore file to share with others,
you can create rules that are not committed with the repository. 

You can use this technique for locally-generated files that you don't
expect other users to generate, such as files created by your editor.

Use your favorite text editor to open the file called 
.git/info/exclude within the root of your Git repository. 
Any rule you add here will not be checked in, and will only ignore
files for your local repository.
---->
KostasX

Ähnliche Antworten wie “Git ignorieren lokale Dateien”

Fragen ähnlich wie “Git ignorieren lokale Dateien”

Weitere verwandte Antworten zu “Git ignorieren lokale Dateien” auf HTML

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen