Git
Git Repository von Gitlab zu Github umziehen
Wenn ein git repository zu github umgezogen werden soll muss als erstes das
reposity bei GitHub erstellt werden. Anschließend muss der remote origin
im
bestehenden repository geändert werden.
git remote set-url origin git@hostname:aw-studio/REPOSITORY.git
Jetzt kann der aktuelle stand mit git push
auf GitHub gepusht werden:
git push
Globally ignore .DS_Store files
tl:dr
git config --global core.excludesfile "~/.gitignore" && echo .DS_Store >> ~/.gitignore
- Configure the path to a global .gitignore file in your .gitconfig file which usually resides in your home directory:
// add this to your ~/.gitconfig:[core] excludesfile = ~/.gitignore
- Create the .gitignore file in your home directory:
touch ~/.gitignore
- Add
.DS_Store
to the global .gitignore using your editor of choice
code ~/.gitignore