Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Welcome to Git (version 1.7.0.2-preview20100309)
- Run 'git help git' to display the help index.
- Run 'git help <command>' to display help for specific commands.
- bidhan@BIDHAN-PC ~
- $ cd Desktop/
- bidhan@BIDHAN-PC ~/Desktop
- $ cd wordoff/
- bidhan@BIDHAN-PC ~/Desktop/wordoff (master)
- $ dir
- sh.exe": dir: command not found
- bidhan@BIDHAN-PC ~/Desktop/wordoff (master)
- $ git
- usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]
- [-p|--paginate|--no-pager] [--no-replace-objects]
- [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]
- [--help] COMMAND [ARGS]
- The most commonly used git commands are:
- add Add file contents to the index
- bisect Find by binary search the change that introduced a bug
- branch List, create, or delete branches
- checkout Checkout a branch or paths to the working tree
- clone Clone a repository into a new directory
- commit Record changes to the repository
- diff Show changes between commits, commit and working tree, etc
- fetch Download objects and refs from another repository
- grep Print lines matching a pattern
- init Create an empty git repository or reinitialize an existing one
- log Show commit logs
- merge Join two or more development histories together
- mv Move or rename a file, a directory, or a symlink
- pull Fetch from and merge with another repository or a local branch
- push Update remote refs along with associated objects
- rebase Forward-port local commits to the updated upstream head
- reset Reset current HEAD to the specified state
- rm Remove files from the working tree and from the index
- show Show various types of objects
- status Show the working tree status
- tag Create, list, delete or verify a tag object signed with GPG
- See 'git help COMMAND' for more information on a specific command.
- bidhan@BIDHAN-PC ~/Desktop/wordoff (master)
- $ git status
- # On branch master
- # Changed but not updated:
- # (use "git add <file>..." to update what will be committed)
- # (use "git checkout -- <file>..." to discard changes in working directory)
- #
- # modified: wordoff.py
- #
- # Untracked files:
- # (use "git add <file>..." to include in what will be committed)
- #
- # output - beautiful.html
- # output.html
- no changes added to commit (use "git add" and/or "git commit -a")
- bidhan@BIDHAN-PC ~/Desktop/wordoff (master)
- $ git commit
- # On branch master
- # Changed but not updated:
- # (use "git add <file>..." to update what will be committed)
- # (use "git checkout -- <file>..." to discard changes in working directory)
- #
- # modified: wordoff.py
- #
- # Untracked files:
- # (use "git add <file>..." to include in what will be committed)
- #
- # output - beautiful.html
- # output.html
- no changes added to commit (use "git add" and/or "git commit -a")
- bidhan@BIDHAN-PC ~/Desktop/wordoff (master)
- $ git tip
- git: 'tip' is not a git command. See 'git --help'.
- Did you mean this?
- citool
- bidhan@BIDHAN-PC ~/Desktop/wordoff (master)
- $ git
- usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]
- [-p|--paginate|--no-pager] [--no-replace-objects]
- [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]
- [--help] COMMAND [ARGS]
- The most commonly used git commands are:
- add Add file contents to the index
- bisect Find by binary search the change that introduced a bug
- branch List, create, or delete branches
- checkout Checkout a branch or paths to the working tree
- clone Clone a repository into a new directory
- commit Record changes to the repository
- diff Show changes between commits, commit and working tree, etc
- fetch Download objects and refs from another repository
- grep Print lines matching a pattern
- init Create an empty git repository or reinitialize an existing one
- log Show commit logs
- merge Join two or more development histories together
- mv Move or rename a file, a directory, or a symlink
- pull Fetch from and merge with another repository or a local branch
- push Update remote refs along with associated objects
- rebase Forward-port local commits to the updated upstream head
- reset Reset current HEAD to the specified state
- rm Remove files from the working tree and from the index
- show Show various types of objects
- status Show the working tree status
- tag Create, list, delete or verify a tag object signed with GPG
- See 'git help COMMAND' for more information on a specific command.
- bidhan@BIDHAN-PC ~/Desktop/wordoff (master)
- $ git status
- # On branch master
- # Changed but not updated:
- # (use "git add <file>..." to update what will be committed)
- # (use "git checkout -- <file>..." to discard changes in working directory)
- #
- # modified: wordoff.py
- #
- # Untracked files:
- # (use "git add <file>..." to include in what will be committed)
- #
- # output - beautiful.html
- # output.html
- no changes added to commit (use "git add" and/or "git commit -a")
- bidhan@BIDHAN-PC ~/Desktop/wordoff (master)
- $ git log
- commit bf4b06f876d44e3661e1b4146ced01a6888af6df
- Author: Peter <Peter.Gijsels@gmail.com>
- Date: Fri Aug 20 14:44:04 2010 +0545
- Removed beautiful soup directory.
- commit 1905f01b4ed214af9cb26cb731bed18bb4f8f015
- Author: Peter <Peter.Gijsels@gmail.com>
- Date: Fri Aug 20 14:43:40 2010 +0545
- Removed beautiful soup.
- commit eaaf228bc2ae52e9e86590c7df23b191ec56eed9
- Author: Peter <Peter.Gijsels@gmail.com>
- Date: Fri Aug 20 14:16:26 2010 +0545
- Added beautiful soup.
- commit bdc3e3d5be98d6064ca2c87441917582ef37a889
- Author: Peter <Peter.Gijsels@gmail.com>
- Date: Fri Aug 20 13:08:22 2010 +0545
- Added README
- bidhan@BIDHAN-PC ~/Desktop/wordoff (master)
- $ git commit
- # On branch master
- # Changed but not updated:
- # (use "git add <file>..." to update what will be committed)
- # (use "git checkout -- <file>..." to discard changes in working directory)
- #
- # modified: wordoff.py
- #
- # Untracked files:
- # (use "git add <file>..." to include in what will be committed)
- #
- # output - beautiful.html
- # output.html
- no changes added to commit (use "git add" and/or "git commit -a")
- bidhan@BIDHAN-PC ~/Desktop/wordoff (master)
- $ git commit -a
- [master 708dbdd] removes redundant <b> tag
- Committer: unknown <bidhan@.(none)>
- Your name and email address were configured automatically based
- on your username and hostname. Please check that they are accurate.
- You can suppress this message by setting them explicitly:
- git config --global user.name "Your Name"
- git config --global user.email you@example.com
- If the identity used for this commit is wrong, you can fix it with:
- git commit --amend --author='Your Name <you@example.com>'
- diff --git a/wordoff.py b/wordoff.py
- index 8e7f21e..b787a03 100755
- --- a/wordoff.py
- +++ b/wordoff.py
- @@ -24,7 +24,7 @@ f = open('input.html')
- input_html = f.read()
- f.close()
- -result = remove_fonts(wordoff(input_html))
- +result = remove_fonts(wordoff(input_html)).replace("</b><b>","")
- f = open('output.html', 'w')
- print >>f, result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement