How do I view an older version of an SVN file?
You can update to an older revision: svn update -r 666 file Or you can just view the file directly: svn cat -r 666 file | less
You can update to an older revision: svn update -r 666 file Or you can just view the file directly: svn cat -r 666 file | less
$ git clone $URL $ cd $PROJECT_NAME $ git reset –hard $SHA1 To again go back to the most recent commit $ git pull To save online (remote) the reverted commit, you must to push enforcing origin: git push origin -f
Before executing this command keep in mind that it will leave you in detached head status Use git checkout <sha1> to check out a particular commit. Where <sha1> is the commit unique number that you can obtain with git log Here are some options after you are in detached head status: Copy the files or … Read more
To get a commit count for a revision (HEAD, master, a commit hash): git rev-list –count <revision> To get the commit count across all branches: git rev-list –all –count I recommend against using this for build identifier, but if you must, it’s probably best to use the count for the branch you’re building against. That … Read more