Showing posts with label GIT. Show all posts
Showing posts with label GIT. 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
Monday, September 20, 2021
Sunday, December 8, 2019
The first thing you’ll want to do with GitLab is create a new project. This is accomplished by clicking the “+” icon on the toolbar. You’ll be asked for the project’s name, which namespace it should belong to, and what its visibility level should be. Most of what you specify here isn’t permanent, and can be re-adjusted later through the settings interface. Click “Create Project”, and you’re done. <a href="https://git-scm.com/book/be/v2/Git-on-the-Server-GitLab" target="_blank">More..</a>
<code>cd existing_folder
git init
git remote add origin https://gitlab.com/amisalabir/crudproject.git
git add .
git commit -m "Initial commit"
git push -u origin master</code>
<code>cd existing_folder
git init
git remote add origin https://gitlab.com/amisalabir/crudproject.git
git add .
git commit -m "Initial commit"
git push -u origin master</code>
Subscribe to:
Posts (Atom)
Upload file to server using Power Shell Command
scp file_name.zip username@server_ip/server_address:/directory_path
-
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...