Giter Club home page Giter Club logo

git's Introduction

git

How can i save username and password in GIT

https://stackoverflow.com/questions/35942754/how-can-i-save-username-and-password-in-git

To setup MFG platform on local

- Create an new instance 
	git clone  giturl ./<project_floder_name>

- CD <project_floder_name>

- To install dependency 
	composer Install

- Remove this line from .htaccess if https not enable
		#RewriteCond %{HTTPS} !=on
		#RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
	and then run 
		- git update-index --assume-unchanged .htaccess

- Update ".env" as per project

Usefull Command

- composer dump-autoload
- git update-index --assume-unchanged .htaccess
- php artisan optimize 
. git pull origin main ## if someone is working on git hub, and we need to download again

Deploy to Server

- To pull from GIT server

	- git pull origin main

- To show changes 

	- git status 

- To add files/Folders

	-git add .

- To Commit

	- git commit -m "Meanfully Comment"

- To push to GIT sever

	- git push origin main

============================================================

- To temporary remove all current change

	- git stash
	
- To Get lastest stash 

	- git stash pop

Reseting Conflict Merge

If you dont want to merge the changes and still want to update your local then run:

 - git reset --hard HEAD  
This will reset your local with HEAD and then pull your remote using git pull.

If you've already committed your merge locally (but haven't pushed to remote yet), and want to revert it as well:

-  git reset --hard HEAD~1 
https://stackoverflow.com/questions/26376832/why-does-git-say-pull-is-not-possible-because-you-have-unmerged-files

Fix error error: pathspec '' did not match any file(s) known to git

https://www.youtube.com/watch?v=dTkHmcJsCvM

Reset git add selected file : How do I undo 'git add' before commit?

git reset <file>
https://stackoverflow.com/questions/348170/how-do-i-undo-git-add-before-commit

git's People

Contributors

makkanimation avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.