Monday, 6 March 2023

Git bitbucket create new branch below master branch

1) Clone the repo in new direcory

 git clone {repo_url}

2)go inside the cloned directory 

cd growth_plus_php/

3) create new branch

git checkout -b growthplus_live

4) delete all directories inside the cloned project except .git folder and .gitignore file

5)create new project or copy paste direcories of existing project

6)Check if  newly created branch is exist

 git branch

You will see the master branch  as well as newly created branch

7) add all the changes

git add .

8) commit all changes 

git commit -m "update"8

9) git push origin new_branch

No comments:

Post a Comment

Laravel Export data to csv

 use Illuminate\Http\Response; // Define a function to export data to CSV function exportToCSV($exportData, $columns) {     $filename = ...