What is Github and How we can use it
1. GitHub is one of the world’s largest community of developers.
2. GitHub has a number of useful features that enable development teams to work together on the same project
3. Easily create new versions of software without disrupting the current versions.
Benefit
This allows you to work on code with anyone from anywhere. Additionally, many employers use GitHub.
#git branch // it will give current working branch name .
#git checkout branch_name //it will switch the existing branch name .
#git checkout -b branch_name // it will create new branch which will be parallel to parent branch .
#make you required changes in particular file for e.g. xyz.c .
git add xyz.c
git commit -m "commit_msg"
git push origin branch_name // it will push your changes into github so that you can raise pull request .
Basic steps for GitHub use
ReplyDeleteCan you please tell me command for remove any files from GitHub ?
ReplyDeleteThanks for putting query here !!
ReplyDeletefor removing purpose you can directly use "git rm" command .
for e.g :- you want to remove a file suppose abc.txt then command should be like this .
git rm abc.txt
please let me know if any further query .
Thanks