1
rated 0 times
[
1]
[
0]
/ answers: 1 / hits: 701
/ 3 Years ago, thu, august 19, 2021, 2:31:27
I have a local GIT repository in my system by name 'git_repo' under which I had the whole codebase for a website (pre-configured by someone else), including all the jsps, js, css etc.
I used the following commands to create the local git repository out of the main repository:
git branch //to show the current branch
git checkout -b branch_local_name origin/Main_branch_name //to create local repository in current branch
git fetch //to fetch the current build
Accidentally, I deleted all the contents of the local folder and I don't know what to do fetch the contents of that website again.
More From » git