Skip to content

Instantly share code, notes, and snippets.

View oguzhanoptimum7's full-sized avatar
😎

Oğuzhan ÖZÇELİK oguzhanoptimum7

😎
View GitHub Profile
@oguzhanoptimum7
oguzhanoptimum7 / remove.liquid
Created November 29, 2021 11:10 — forked from chrisjhoughton/remove.liquid
Remove a Shopify cart attribute
{% if cart.attributes.yourCartAttribute %}
<script>
$.ajax({
type: 'POST',
url: '/cart/update.js',
data: 'attributes[yourCartAttribute]=',
dataType: 'json'
});
</script>
{% endif %}
@oguzhanoptimum7
oguzhanoptimum7 / git_newrepo
Created April 13, 2021 12:44 — forked from sundarshahi/git_newrepo
Git: Push a new or existing repo to Github
# Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master
# Push an existing repository from the command line
@oguzhanoptimum7
oguzhanoptimum7 / remove-node-modules.md
Created January 9, 2021 20:37 — forked from lmcneel/remove-node-modules.md
How to remove node_modules after they have been added to a repo

How to remove node_modules

  1. Create a .gitignore file in the git repository if it does not contain one

touch .gitignore

  1. Open up the .gitignore and add the following line to the file

**/node_modules