Posts

Showing posts with the label synchronize

Synchronize your project with github

Image
To synchronize your project (folder) with git hub, first check connectivity with them. Create an ssh key with your github mail (the mail that you use to login) and copy it in your github account. Later check the connection. Follow these commands: apt-get install openssh-server ssh-keygen -t rsa -C "nicolas.boettcher@mail.udp.cl" cd ~/.ssh/ cat id_rsa.pub #Copy this key to your github config #Now, check connectivity to github ssh -vT git@github.com Now, create a new project on github page. To upload the content to github, follow these steps: cd $FOLDER git branch --set-upstream master origin/master git config --global user.name "$USER" git config --global user.email "$MAIL" git init #Now, add all files in your folder git add * git commit -m "$MESSAGE" git status git remote add origin https://github.com/$USER/$PROJECT_NAME git push origin master A common error is the following: ! [rejected]        master -> master (fetc...