Git

KATEGORİ

1- Your local changes to the following files would be overwritten by merge

git checkout HEAD^ lib/views/fileName
git pull

2- Aynı anda birden fazla kullanıcı aynı repository üzerinde değişiklikler yapıyorsa öncelikle değişiklik yapılan dosyaları kaydet. git status ile değişiklikleri izle. Herbir dosyayı ekle. git add lib/services/kky/dagitim_noktalari_service.dart . git commit -m “abc” ile commit işlemini yap. git pull ile sunucudaki kodları al. fatal: Not possible to fast-forward, aborting durumunda git pull –rebase komutunu çalıştır. Son olarak git push ile değişiklikleri sunucuya yükle.

3- Localdeki projeyi remote sunucuya göre güncellemek

  • git init
  • git status
  • git add –all
  • git commit -m “first-commit-test”
  • git remote add production ya da git remote add origin http://git.mycompanyaddress.com.tr/<gitfolder>/myProject.git (production adında bir remote depo ekle)
  • git pull production master ya da git pull origin master ya da git pull –rebase
  • git push –set-upstream production master (ilk ekleme yapılırken, sonrasında git push) ya da git push –set-upstream origin master
  • remote depoyu silmek istersek : git remote remove production