Note: In the below step , I have used a project named "my_project" . Install git and create a account in github before follow the below steps.
Github Link : https://github.com/
In Ubuntu flavoured system :
sudo apt-get install git
My project directory is :
/home/cision/project/my_project>
Github Link : https://github.com/
In Ubuntu flavoured system :
sudo apt-get install git
My project directory is :
/home/cision/project/my_project>
- cd /home/cision/project/my_project>
- git config --global user.name 'username'
- git config --global user.email 'your registered emails id in github'
- git init
- git add -A
- git status
- git commit -m "initialize repository'
safeguard : In case any damage in local project directory ( not the git repository ) use th ebelow command to restore from git to project directory
Ex: remove any file from project directory , then
# git checkout -f
Now you can see the same deleted file again in the project directory.
No comments:
Post a Comment