Update Wichtige Befehle

Fabian Schieder 2026-01-26 07:35:46 +00:00
parent b12bdadbb9
commit 4f2b6ff0a5

@ -4,33 +4,33 @@
> ### SSH Tunnel lokal
> - ssh -N -L 3306:127.0.0.1:3306 fsst@fabianschieder.com
> ### Commit Account fix
>
>> - git config --global --list
>> - git config --global user.email "fabian.schieder.1010@gmail.com"
>> - git config --global user.name"fsst"
>
>> - git clone git@fabianschieder.com:fabian/Geizkragen.git
>> - cd Geizkragen
>
>> - git filter-repo --email-callback '
>> if email == b"fabian.schieder@el.htl-hl.ac.at":
>> return b"fabian.schieder.1010@gmail.com"
>> return email
>> '
>
>> - git remote -v
>> - git remote add origin git@fabianschieder.com:fabian/Geizkragen.git
>
>> - git push --force origin --all
>> - git push --force origin --tags
>
>> - git fetch origin && git reset --hard origin/main
>
>> #### Wenn Commits doppelt
>> - git reset --hard 5625a8ec62
>> - git push --force origin main
>
>> ### Commit Account fix
>>
>>> - git config --global --list
>>> - git config --global user.email "fabian.schieder.1010@gmail.com"
>>> - git config --global user.name"fsst"
>>
>>> - git clone git@fabianschieder.com:fabian/Geizkragen.git
>>> - cd Geizkragen
>>
>>> - git filter-repo --email-callback '
>>> if email == b"fabian.schieder@el.htl-hl.ac.at":
>>> return b"fabian.schieder.1010@gmail.com"
>>> return email
>>>'
>>
>>> - git remote -v
>>> - git remote add origin git@fabianschieder.com:fabian/Geizkragen.git
>>
>>> - git push --force origin --all
>>> - git push --force origin --tags
>>
>>> - git fetch origin && git reset --hard origin/main
>>
>>> #### Wenn Commits doppelt
>>> - git reset --hard 5625a8ec62
>>> - git push --force origin main
>>
>> #### Aktuellen Repository Stand fetchen
>> - git fetch origin
>> - git reset --hard origin/main