#include <iostream>
#include <cstdlib>
#include <ctime>
#include <clocale>
#include <thread>
using namespace std;
int main() {
// Öncelikle Türkçe karakter desteğimiz için bir kod yazalım.
setlocale(LC_ALL, "Turkish");
// GitHub'daki değişiklikleri takip edeceğiniz projenizin URL'sini belirtin.
string githubRepositoryURL = "https://github.com/yourusername/yourrepository.git";
while (true) {
// GitHub'daki projenizi güncellemek için "git pull" komutunu kullanın.
int result = std::system("git pull " + githubRepositoryURL);
if (result == 0) {
cout << "Proje güncellendi." << endl;
} else {
cout << "Güncelleme başarısız." << endl;
}
// Belirli bir süre sonra tekrar kontrol etmek için bekleme ekleyin.
std::this_thread::sleep_for(std::chrono::hours(1)); // Örneğin, 1 saatte bir kontrol edebilirsiniz.
}
return 0;
}