Skip to content

soufianes98/devops_playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

DevOps Playground

git config --list --global rm -f ~/.gitconfig before starting

Load .env file set -a Marks all variables for export source .env Load the file set +a Turns off automatic export

bash .github/scripts/release.sh

https://www.simplilearn.com/what-is-git-rebase-command-article https://github.com/soufianes98/devops_playground/actions/workflows/ci.yml

Git Recipes

Recipe0

Delete all previous commits (start completely fresh)

# Delete remote tags
git push --delete origin $(git tag -l)
# Delete all local tags
git tag -d $(git tag) 
# Create a new orphan branch
git checkout --orphan temp_branch
git add .
git commit -m "initial commit"
# Replace the main branch
git branch -M temp_branch main
git push origin +main # Force push
# Clean up local repository
git remote prune origin

Recipe1

# Fork and Clone the repository
git clone https://github.com/soufianes98/Spoon-Knife.git
cd spoon_knife
# Create and switch to the new branch
# `git checkout main` to switch to the main branch
git checkout -b feature/some-feature
# Get current branch
git branch
code .
# Make changes in the new branch `feature/some-feature`
# git add . | git add -all | git add file.extension
git add . 
# Check the status of all the files we changed
git status
# Commit the changes
git commit -m "your commit message"
# Publish changes to the remote repository
git push origin feature/some-feature
# If pull request PR merged successfully then delete that branch
# For local repo
git branch -d feature/some-feature
# For remote repo
git push origin --delete feature/some-feature

Recipe2

git init
git add .
git commit -m "first commit [no ci]"
git branch -M main
git remote add origin https://github.com/soufianes98/devops_playground.git
git push -u origin main

Recipe3

# Rename branch locally
git branch -m master main

Recipe4

# Delete all previous commits (start completely fresh) (Recipe)
git push --delete origin $(git tag -l) # Delete remote tags
git tag -d $(git tag) # Delete all local tags
# Create a new orphan branch
git checkout --orphan temp_branch
git add .
git commit -m "initial commit" # git commit -m "initial commit" -m "Pre-Release: dev"
# Replace the main branch
git branch -M temp_branch main
git push origin +main # Force push
# Clean up local repository
git remote prune origin

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published