Showing posts with label github. Show all posts
Showing posts with label github. Show all posts
Saturday, June 15, 2024
How to merge a branch to main branch in Github.
In Terminal or Command Prompt:
git checkout main [switch to main branch]
git pull origin main [grab latest updates from main branch]
git merge master merge [master branch to your main branch]
git push origin main [push your changes to main]
Thursday, November 24, 2022
How to delete all commit history in GitHub & repush to main?
Create a new Branch:
git checkout --orphan latest_branch
Add your all the files:
git add .
Save the changes with commit:
git commit -m "commit message"
Delete Main Branch:
git branch -D main
Rename latest_branch to main:
git branch -m main
Force update the repo:
git push -f origin main
Friday, December 31, 2021
Git Configuration and Commit Command
Git Configuration :
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
Commit comman for Mac:
git reset --mixed origin/main
git add *
git commit -m "This is a new commit for what I originally planned to be amended"
git push origin main
Commit comman for Windows:
git add * or git add --all
git commit -m"first message"
git remote add origin "LINK"
git push -u origin master
Subscribe to:
Posts (Atom)
How to get Ranking of the Students in Excel using RANK Function
=RANK(number,ref,[order]) To rank in descending order, we will use the formula =RANK(B2,($C$5:$C$10),0) If we want unique ranks, we can use...
-
Put the following code in a TXT file and save as "file.cmd" then run the cmd file as administrator. @echo off title Activate Micr...
-
We can install PowerMTA on the server. rpm -ivh /home/PowerMTA-4.0r6.x86_64.rpm You will see the output like this Preparing... #############...
-
# $Id: config 2015-03-24 16:00:00 Jack $ # Sample PowerMTA configuration file # PowerMTA Multiple Virtual PMTA config file sample # # E-mai...