Skip to main content

Git React Project Upload

 Git React Project Upload



git init git config --global user.name "Your Name" git config --global user.email youremail@domain.com git add * git commit -m "Updated source" git remote add origin URL.git git remote -v git push --set-u origin master


Initial Push-

Make github project without readme
git init
git remote add origin URL
git add .
git commit -m "Initial Commit"
git remote -v
git branch -M master
git push -u origin master
Done



Git commads Learned -

Check Auth = git config --global user.email

git log 
git status


Creating Branch -
git branch branchName

Shortcut to create branch and checkout -
git checkout -b Mihir/Add
git push -u origin Mihir/Add

Jumping From One Branch To Another:
git checkout branchName

Adding files and commiting:
git add . (Add all Files)
git add Div.js

Branch Structure -

Master (main)
Dev 
Mihir(developerName)/AddingMultipy

Merging two branch:
 
- git checkout Master 
- git merge MIhir/AddingMultiply

Secret Files And Data:
- make file with name .gitignore
- add div.js in it 
- make sure to add .gitignore in it
- Done

cls to clean cmd screen


Updating Files Quickly -

git add Name.js
git commit -m "Message"
git push

Pushing Differnet Branches -

git checkout dev
git push -u origin dev

Git changing repo with url 
git clone project link 
cd ...
npm install 
git remote set-url origin htttp:.....
git add. .
...

Open Source Contribution -

go to github and fork 
in cmd make folder and git clone https://github.com/Bhagyeshpro/First-Contribution.git/Link of repo
git add .
git commit -m "Updating"
git push -u origin branchName

go to github and Contribute Add Message Submit







Comments

Popular posts from this blog

VERCEL DEPLOYMENT ERROR

 VERCEL DEPLOYMENT ERROR Options | NextAuth.js (next-auth.js.org) Step 1 : cmd $ openssl rand -base64 32 (Copy generated key) Step 2: Go to Project Environment Variables Add NEXTAUTH_SECRET : Key  Step 3: Redeploy

Convert React Native To Expo

Convert React Native To Expo Step 1: Add Into App.json   "expo" : {     "sdkVersion" : "44.0.0" ,     "name" : "AwesomeProject"   } Step 2: Add this into your package.json    "dependencies" : {     "expo" : "^33.0.7" ,     "react" : "17.0.2" ,     "react-native" : "0.67.2"   }, Step 3: Make your Index.js file look like this AppRegistry . registerComponent ( 'main' , () => App ); Step 4: Install expo in your project folder In terminal paste npm install --save expo / npm install (If necessary)

Using Same Firebase for Web App as well as Android App

Using Same Firebase for Web App as well as Android App Create Android app in that project go to project setting click on iso or android or web icon.  Go to authentication select Google then enable select email Get client id from web sdk - Create.env.local  GOOGLE_CLIENT_ID=259eklrjelkjr GOOGLE_CLIENT_SECRET=GOlkelkrjer NEXTAUTH_URL=https://localhost:3000 - Restart the server/app - Create folder in pages/auth/signin.js