Versioning: Difference between revisions
no edit summary
No edit summary |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1:
[[Category:
__TOC__
<br />
Line 8:
sudo apt-get install mercurial
Usage:<br />
cd to the config directory:
cd /etc/freeradius
Line 27:
If you get error regarding any deleted files:
hg commit
This will add all new files that are not ignored, and remove all locally missing files
Line 37:
= Git =
Initializing GIT repository:
Create a online repository on https://github.com
On Local Server:
git init
echo "# test" >> README.md
git config --global user.email "amanjosan2008@gmail.com"
git config --global user.name "Amandeep Singh"
git add .
git commit -m "first commit"
git remote add origin https://github.com/amanjosan2008/test.git
git push -u origin master
Add all files & Remove deleted files:
git add -A
Remove a particular file from being traced:
git reset logo.png
Commit:
git commit -m "2nd Commit"
git push -u origin master
<br />
|