Foss lect 8 1 11.txt: Difference between revisions
mNo edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 42: | Line 42: | ||
In git you cannot recover an older version unless it is branched out. If the reversion is done | In git you cannot recover an older version unless it is branched out. If the reversion is done | ||
on the trunk, the new stuff is lost. No version numbers in git. | on the trunk, the new stuff is lost. No version numbers in git. | ||
For practicing the remote git repository go to [https://github.com/ git hub] you can create and play with the remote git repository. | |||
You have to create the account there. You can go through the help documents on that site also for any problem. | |||
Upstream/downstream concept: A developer who fixes a bug in a software obtained from the community | Upstream/downstream concept: A developer who fixes a bug in a software obtained from the community | ||
| Line 71: | Line 74: | ||
Then actual code browsing can be done using cscope. | Then actual code browsing can be done using cscope. | ||
$scope | $scope | ||
Then we can enter for e.g. function which we want to find, in which file it is? after entering function name, press enter. Cscope will list the names of files in which it has found that function. We can go through that file by pressing enter on that file name. | Then we can enter for e.g. function which we want to find, in which file it is? after entering function name, press enter. | ||
Cscope will list the names of files in which it has found that function. We can go through that file by pressing enter on that file name. | |||
Hyphenation Session by Shravan: | Hyphenation Session by Shravan: | ||
Hyphenation dictionary has all the rules. | Hyphenation dictionary has all the rules. | ||
| Line 78: | Line 83: | ||
---- | ---- | ||
'''Commands to be used for Git''' | |||
git commit -a: where a indicates all | |||
git log | |||
git init | |||
git add | |||
git diff | |||
git branch | |||
git checkout branch | |||
git whatchanged | |||
eg: git whatchanged since="may 2010" | |||
git status: Shows the log messages | |||
git clone | |||
~~Homework for the week~~ | ~~Homework for the week~~ | ||