Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
OrdChaos authored Jul 25, 2022
1 parent 662c0e8 commit 7c770ff
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions blogpusher.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#include <iostream>
using namespace std;

int main(int argc, char** argv){
string commit;
for(int i = 1; i < argc; i++){
commit += argv[i];
if(i != argc - 1){
commit += " ";
}
}
string commitInput = "git commit -m\"" + commit + "\"";
cout<<"==========BEGIN PULL=========="<<endl;
system("git pull origin master");
cout<<"==========BEGIN ADD=========="<<endl;
system("git add .");
cout<<"git add success"<<endl;
cout<<"==========BEGIN COMMIT=========="<<endl;
system(commitInput.c_str());
cout<<"==========BEGIN PUSH=========="<<endl;
system("git push origin master");
return 0;
}

0 comments on commit 7c770ff

Please sign in to comment.