How can I download git branch files to local system

0 votes
I have a folder like xampp/htdocs/test. Actually I need all files from specified branch(for eg:branch1) of git to this 'test' folder. I am using git clone command. But after that I got some files.
May 27 in Linux Administration by Rahul
• 3,380 points
35 views

1 answer to this question.

0 votes
  1. Clone the master branch. As you  said that you already used git clone <repository>
  2. Go inside the directory root by cd <repository>
  3. Execute the git checkout command git checkout <branch name you want to see the files>
answered May 27 by Korak
• 5,820 points

Related Questions In Linux Administration

0 votes
1 answer

How can I find out which files differ in two directory trees?

Use this; diff -qr dir1/ dir2/ READ MORE

answered Jun 13, 2019 in Linux Administration by Upasana
• 8,620 points
266 views
0 votes
0 answers
0 votes
0 answers

How do I copy folder with files to another folder in Unix/Linux?

I am having some issues copying a ...READ MORE

Apr 13 in Linux Administration by Soham
• 8,740 points
25 views
0 votes
0 answers

How do I copy folder with files to another folder in Unix/Linux?

I am having some issues to copy ...READ MORE

Apr 21 in Linux Administration by Edureka
• 13,640 points
17 views
0 votes
0 answers

How can I convert a series of images to a PDF from the command line on linux?

I have a scanning server I wrote ...READ MORE

Apr 21 in Linux Administration by Edureka
• 13,640 points
24 views
0 votes
0 answers
0 votes
2 answers

How do I find all files containing specific text on Linux?

grep -rnw 'text to find recursively inside ...READ MORE

answered May 20, 2019 in Linux Administration by Ritesh Singh
26,615 views
0 votes
1 answer
0 votes
1 answer

Adding Git-Bash to the new Windows Terminal

Open settings with Ctrl + , You'll want ...READ MORE

answered May 27 in Linux Administration by Korak
• 5,820 points
71 views
0 votes
1 answer

How to check if a string contains a substring in Bash?

You ought to recollect that shell prearranging ...READ MORE

answered May 27 in Linux Administration by Korak
• 5,820 points
33 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP