Vigyan ashram Fablab GIT repository tutorial ------------------------------------------------------------------------------------ First open your account on fablab.io https://www.fablabs.io/signup Make sure about username, email ID and password. Install GIT in your Linux system with following commands: sudo apt-get install git -y Check whether its installed or not: dpkg -s git Generation of new SSH key First do flush out all ssh keys from ssh folder. For this use command: cd ~/.ssh #navigate to .ssh folder rm * #delete everything present Check if still previous key is present, if yes then and also deleted all the keys from '.ssh' folder then restart your box. If not present proceed: ssh-add -l # list out all the keys installed currently Generate the new ssh key as follows: ssh-keygen -t rsa -C "youremail@domain.com" #replace with your email id, when prompted press enter to accept the defaults. ssh-add ~/.ssh/id_rsa #this will add the key into ssh-agent xclip -sel clip < ~/.ssh/id_rsa.pub #by-default it creates id_rsa file. if you have changed the defaults then replace that with this IMPORTANT (discovered through research) Now if you are setting up Ubuntu first time, it will prompt XCLIP- package not found. Go to your settings-> Software update-> Click on all 4 options-> Unselect the lower option-> type sudo apt install xclip on terminal-> Now again put the key: xclip -sel clip < ~/.ssh/id_rsa.pub-> Now run this to ensure client is working or not: eval "$(ssh-agent -s)" It will show the agend pid (four digit) Go to git.fabacademy.org -> sign in with FABLAB. Log in with fablab.io user credentials. Once logged in go to the profile preferences, and look out for ssh keys section, open that section. Then click on green colored 'Add Key' button and paste the key into the text-box provided and enter the title for your key, it can be anything but by-default it takes as you email id. -cat ~/.ssh/id_rsa.pub and Paste the ssh key from your account Now run this to ensure client is working or not: eval "$(ssh-agent -s)" Let's try to get the data from our repository. To clone the repository you can choose your favorite folder, I'll be using my home folder to clone the repository: cd ~/ #this will take terminal to your Home directory git clone git@git.fabacademy.org:fabacademy2017/fablabvigyanashram.git You will find 'fablabvigyanashram' folder inside home directory Let's configure the git, use the username and the email id that you've used in the previous step to sign up into the account.: cd ~/fablabvigyanashram #replace this with your repository folder git config --global user.name "yourname" git config --global user.email "youremail" git config --global push.default simple Now make all the necessary changes that you want to see inside 'fablab vigyan ashram’ folder. Now, open the Terminal and execute the following commands : cd ~/fablabvigyanashram git pull git add --all # add your changes git commit -m "message" # message which will identify user & purpose of commit git push # uploading process will start now! Follow above sequence for every PUSH and PULL of repo.a