How to download the flat file from GitHub?

I’m trying to download the flat text file from GitHub to local path.

wget  HTTP://GitHub..../exercise/tree/master/..txt

After running the command i see the file downloaded with HTML tags.

  • How do I track “dot” configuration files in my home directory with git?
  • GIT : Search for all directories containing lower case names
  • setting tabwidth to 4 in git show / git diff
  • Git: after commiting new files, I cannot commit, because of »branch up to date«-message
  • Integrator workflow, Is fetch-rebase-push safe for remote repos?
  • How can I work on a bzr/hg repository with XCode 4?
  • How do I get the file content alone downloaded from the Git path?

  • Git Permission denied (publickey)
  • same project, multiple customers git workflow
  • Git log placeholder for branch
  • Run testng test in Git pre-commit hook
  • git aborting commit immediately - Brackets editor
  • Git Remote Add Privacy / History
  • One Solution collect form web for “How to download the flat file from GitHub?”

    Well actually thats pretty easy. Use this link format:

    https://raw.githubusercontent.com/<username>/<repo>/<branch>/folder/filename.c

    Edit: thx to the comment

    Git Baby is a git and github fan, let's start git clone.