Skip to content

Push on Github Repo

Configuration

Push Astro JS Blacks Theme Project on Github.

Before push your project, you need to add your domain.

For first you can open astro.config.mjs

and change site url with your domain name .

Json Code

export default defineConfig({
site: 'https://locahost:4321'
});

And open src/data/config.json change url with your domain name.

Json Code

{
"url": "http://localhost:4321",
"title": "Creative Photo ART",
"description": "Berkarya lah dengan kegilaan yang mahal, bukan berkarya dengan kemahalan yang gila - The ART of Photography.",
"favicon": "/img/astrojs.svg"

Change URL http://localhost:4321 with your domain name

Push on Github

Register and create an account on github

Next you can create new repo , check image

Push astro JS website to github repo

Name it your repo , then select your project for public or private, Then you can click create repo button.

Next, You need to following github command.

For first access your project using terminal , then copy and paste command script from github.

Example

git init
git add .
git commit -m "first commit for my astro website"
git remote add origin https://github.com/username/your-repo-name
git push -u origin master

Change username with your github username ,and change your-repo-name with your github repo

And you have successfully push your project on github repo.

Output Push astro JS website to github repo

Next step, you need to register on modern static host provider for deploy your project and make your website live.