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, 2022 in Linux Administration by Rahul
• 3,380 points
629 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, 2022 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
328 views
0 votes
0 answers

How do I copy a folder from remote to local using scp?

How do I copy a folder from ...READ MORE

Apr 13, 2022 in Linux Administration by Soham
• 9,700 points
70 views
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, 2022 in Linux Administration by Soham
• 9,700 points
75 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, 2022 in Linux Administration by Edureka
• 13,640 points
75 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, 2022 in Linux Administration by Edureka
• 13,640 points
86 views
0 votes
0 answers

How can I delete a user in linux when the system says its currently used in a process

I am trying to delete a user ...READ MORE

Apr 26, 2022 in Linux Administration by Edureka
• 13,640 points
106 views
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
31,718 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, 2022 in Linux Administration by Korak
• 5,820 points
337 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, 2022 in Linux Administration by Korak
• 5,820 points
255 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP