UNDO Reinitialized existing Git repository Made a mistake

UNDO Reinitialized existing Git repository Made a mistake

Questions : UNDO Reinitialized existing Git repository Made a mistake

8951

I had apparently made a mistake in some code in4codes_github in the original git push from the command in4codes_github line. After about 5 retrys I need help. The in4codes_github code in the program is fixed but when I do

git init 

It says

Reinitialized existing Git repository in 

What my question is. How do you wipe the in4codes_github memory of the git so that you can redo in4codes_github everything over again and upload it as if in4codes_github the code was there for the first time?

Total Answers 4
26

Answers 1 : of UNDO Reinitialized existing Git repository Made a mistake

This sovled the issue. If you had a in4codes_github previous mistake in git and want to in4codes_github delete it then do

rm -rf .git 

Then do

git init 

To start over

0

4

Answers 2 : of UNDO Reinitialized existing Git repository Made a mistake

You can fix the existing local commit by in4codes_github staging all the fixes and then running in4codes_github git commit –ammed. Then, overwrite the in4codes_github remote branch by git push –force in4codes_github origin.

0

4

Answers 3 : of UNDO Reinitialized existing Git repository Made a mistake

If you ever want to reuse the old in4codes_github repository and its history, just rename in4codes_github the folder .git and then use the in4codes_github commands for a new start, either

git init

or

git clone

depending on the situation, if you have in4codes_github a remote repo your are starting from or in4codes_github if your local files are the starting in4codes_github point.

0

2

Answers 4 : of UNDO Reinitialized existing Git repository Made a mistake

  1. open up git bash
  2. locate the folder
  3. type rm -rf .git
  4. then initialize the git like git init

0

Answer Link
jidam
  • Unable to run NoraUI mvn verify goal
  • Unable to run my app on emulator in VS Code
  • Unable to run multiple instances of libVLC(MobileVLCKit) in IOS via flutter framework
  • Unable to run make on griddb source on ubuntu 20.04 (building from source)
  • Unable to run latexindent macOS Monterey 12.0.1
  • Unable to run kotlinc-native command
  • Unable to run JUnit Test… Java.lang.ExceptionInInitializerError (Android Studio)
  • Unable to run java with -Xmx > 966m
  • Unable to run ionic cap run android from wsl2 inorder to start android emulator
  • Unable to run Intel HAXM installer: Cannot start process, the working directory does not exist
  • fs
  • Unable to run Google Analytics sample code
  • unable to run flutter run after upgarding to flutter 2.8.0 from 2.5.3
  • Unable to run Django with PostgreSQL in Docker
  • Unable to Run Container Using testcontainers
  • Unable to run ClojureScript Hello World program, Error building classpath. Error reading edn.
  • unable to run client command for apache karaf 4.3.3 through remote server
  • Unable to run c program 2nd time using eclipse
  • unable to run c++ in visual studio code on m1 chipset
  • Unable to run Android Instrumented Tests
  • Unable to run adb, check your Android SDK installation and ANDROID_SDK_ROOT environment variable: …AndroidSdkplatform-toolsadb.exe
  • Unable to run a singlespecific .spec.ts file through angular cli using ng test –include option
  • Unable to run a Mango query
  • Unable to return response back to view in laravel from package
  • Unable to return object reference in std::optional
  • Unable to return NULL in a function that expects an integer return type
  • Unable to return correct change in JavaScript Cash Register
  • Unable to retrieve version information from Elasticsearch nodes. Request timed out
  • Unable to retrieve values from Axios Response data