Clone and duplicate the app from GitHub (initialization)

I am doing job change activities with my own application as a portfolio.

Since it contained a lot of personal information, it is a ** duplication ** and ** initialization ** procedure to wipe out that area and recreate the app for publication while maintaining only the function of the app.

flow

--Clone the app you want to duplicate --If necessary, rename the cloned directory (named app_v2) --Edit personal information (I don't want to keep it in the commit history) --Delete git information in directory --Create a new remote repository --Initialize and push to the created remote repository

It's like that.

command

#Copy the URL when cloning the app you want to clone on GitHub
git clone copied URL

#Edit the file and once.Remove git
rm -rf .git

#Create a repository and follow the instructions when creating a new one
#Initialize and push again
git init
git add .
git commit -m 'Commit message'
git branch -M main
git remote add origin URL of the created remote repository
git push origin HEAD

Done.

As an aside, if you use git push origin HEAD, it will be convenient to push with the current branch name!

Recommended Posts

Clone and duplicate the app from GitHub (initialization)
How to connect to lcalhost from your smartphone and use the app under development
The road from Git clone to building the environment and participating in the project (all in full)
ArrayList and the role of the interface seen from List
Vibrate the wristband device with Bluetooth from the Android app
Java language from the perspective of Kotlin and C #
About Class loading and initialization when the JVM starts
21 Load the script from a file and execute it
Kotlin may take the world from App to Web